• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Where to implement alert ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Where to implement alert ?
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: NSFetchRequest Problem Under iOS 4.3.5
  • Next by Date: Programmatically create aliases to unmounted servers?
  • Previous by thread: Re: How to open CMYK TIF in Cocoa?
  • Next by thread: Re: Where to implement alert ?
  • Index(es):
    • Date
    • Thread