289 : (NSOutlineView*) view shouldEditTableColumn:(nullable NSTableColumn *)tableColumn item:(nonnull id)item
290{
291 NSClipView * clipView = [[self enclosingScrollView] contentView];
294 clipView.postsBoundsChangedNotifications = YES;
295 [[NSNotificationCenter defaultCenter] addObserver:self
296 selector:@selector(synchronizedViewContentBoundsDidChange:)
297 name:NSViewBoundsDidChangeNotification
298 object:clipView];
299 }
300
301 wxDataViewColumn* const col((wxDataViewColumn *)[tableColumn getColumnPointer]);
302 wxDataViewItem item2([static_cast<wxPointerObject *>(item) pointer]);
303
304 wxDataViewCtrl* const dvc = implementation->GetDataViewCtrl();
305
306 wxDataViewEvent event(wxEVT_DATAVIEW_ITEM_EDITING_STARTED, dvc, col, item2);
307 dvc->GetEventHandler()->ProcessEvent( event );
308 if( !event.IsAllowed() )
309 return NO;
310
311 return YES;
312}
bool addObserver
Definition MacDarkMode.mm:287