Where to implement alert ?
Where to implement alert ?
- Subject: Where to implement alert ?
- From: Luc Van Bogaert <email@hidden>
- Date: Tue, 24 Jan 2012 22:03:39 +0100
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 (email@hidden)
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:
This email sent to email@hidden