Hi,

I have what I think is a very simple design question for which I would like to 
get input from some of the experts on this list. 
Assume I have a document object with an array object as a property, and an 
associated window controller, with a removeObject: method which is called from 
the menu. If I wanted to alert the user before actually removing an object from 
the document's array, what is considered the best place to implement the 
NSAlert code: in the windowController's removeObject: method, or in the 
document's removeFromObjectsAtIndexes: method, thus do we generally add the 
NSAlert at the 'higher' or at the 'lower' level, if it matters at all?

Thanks for any advice.
 
-- 
Luc Van Bogaert

_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to