outlineViewSelectionDidChange not always being called on remove

2008-12-29 Thread christophe mckeon gonzalez de leon
hi, i've got an NSOtlineView, and an NSTreeController working together with core data. i've just added a delete menu item which invokes remove like so if treeController canRemove treeController remove the problem is that sometimes when i delete, my outline view delegate gets sent an outlineV

Re: processPendingChanges and disableUndoRegistration

2008-12-25 Thread christophe mckeon gonzalez de leon
thanks for the pointer. please pardon the rambling, but i'm just trying to wrap my head around the semantics involved here. according to Quincey Morris who answered your question, the way that apple has it in their tutorial: dur (disable undo registration) mmoc (somehow mutate managed object con

processPendingChanges and disableUndoRegistration

2008-12-25 Thread christophe mckeon gonzalez de leon
hi, in the NSPersistentDocument Core Data tutorial, apple includes the below code. my question is whether there should not also be another call to processPendingChanges before the call to disableUndoRegistration? i have seen several examples of code online which do call it twice, and it would seem

NSPersistentDocument's managedObjectContext accessed from init

2008-12-24 Thread christophe mckeon gonzalez de leon
hi, i was trying to set up some initial document state by fetching on the managedObjectContext from within my NSPersistentDocument subclass' init method, but finally realized that the context does not seem to be fully initialized yet. so i am doing it from within makeWindowControllers which seems

Re: constraining autoresizing of a splitview subview

2008-12-13 Thread christophe mckeon gonzalez de leon
wow that was fast! thanks guys ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscr

constraining autoresizing of a splitview subview

2008-12-13 Thread christophe mckeon gonzalez de leon
hi, i have a splitview containing two vertical subviews. i'd like the user to be able to resize the the views at will via. the divider, but when the splitview is resized due to a window resize for instance, i want only one of the subviews to be autoresized in the horizontal direction, while both a

splitview, simple noob Q

2008-11-23 Thread christophe mckeon gonzalez de leon
hi, in IB, if i drag an outline view into one of the panes of a split view, i get a view hierarchy which looks like this: content view split view custom view scroll view outline view ... custom view ... my question is, should the custom view (NSView) even be