Hi, I hoping someone can point me in the right direction on this as I'm really struggling to get it all to work.
I have a class which holds two NSString properties, an NSImage property and an NSPredicate property. I have an array that holds instances of this class, and an NSArrayController hooked up to that array. I have a NSTableView with a custom cell, which displays the image, name (1st NSString property) and description (2nd NSString property) for each instance of the class in the NSArrayController. So, because the custom cell draws its data as it does, I cannot simply allow the end user to edit in cell so have disabled that functionality. Would I would like to do is to pop up a sheet that has a form on it to edit the new instance of the class just added by clicking the button linked to the add selector, but this is what I can't figure out how to do ? If I hook up a button to the add selector of the NSArrayController it works as you'd expect and the new instances populate the table (using default data). I have looked for delegate methods in both NSArrayController and NSTableView to see if I can get notification of when a new instance is created so that I can then use that to pop up the sheet, but to no avail. Can anyone help and point me in the right direction of how to do this ? Thanks, -Mic _______________________________________________ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com