• 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
Re: NSPopupButton with NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPopupButton with NSArrayController


  • Subject: Re: NSPopupButton with NSArrayController
  • From: Andreas Mayer <email@hidden>
  • Date: Sun, 7 Jan 2007 02:42:37 +0100


Am 07.01.2007 um 01:04 Uhr schrieb Ferhat Ayaz:

I want to use the add: method of an NSArrayController.

Why?

This is very important.

Why?

Any AppKit tasks (refreshing TableViews etc.) are performed "after" method -makeInvoice.

That's why you should create the object yourself and use -addObject: instead of -add:


Anyway. *Assuming* -selectsInsertedObjects ist set to YES for your controller, -selectedObjects will return an array containing your newly created object after adding it. But I'm not sure if this works before the next run through the run loop or only afterwards. Again: To avoid this problem, just create the object yourself.


Andreas _______________________________________________

Cocoa-dev mailing list (email@hidden)

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: NSPopupButton with NSArrayController
      • From: Ferhat Ayaz <email@hidden>
References: 
 >NSPopupButton with NSArrayController (From: Ferhat Ayaz <email@hidden>)
 >Re: NSPopupButton with NSArrayController (From: "I. Savant" <email@hidden>)
 >Re: NSPopupButton with NSArrayController (From: Ferhat Ayaz <email@hidden>)
 >Re: NSPopupButton with NSArrayController (From: "I. Savant" <email@hidden>)
 >Re: NSPopupButton with NSArrayController (From: Ferhat Ayaz <email@hidden>)
 >Re: NSPopupButton with NSArrayController (From: "I. Savant" <email@hidden>)
 >Re: NSPopupButton with NSArrayController (From: Ferhat Ayaz <email@hidden>)
 >Re: NSPopupButton with NSArrayController (From: "I. Savant" <email@hidden>)
 >Re: NSPopupButton with NSArrayController (From: Ferhat Ayaz <email@hidden>)
 >Re: NSPopupButton with NSArrayController (From: "I. Savant" <email@hidden>)
 >Re: NSPopupButton with NSArrayController (From: Ferhat Ayaz <email@hidden>)

  • Prev by Date: Re: previousResponder?
  • Next by Date: Help! NSFetchRequest/NSManagedObjectModel weirdness (or a memory problem)
  • Previous by thread: Re: NSPopupButton with NSArrayController
  • Next by thread: Re: NSPopupButton with NSArrayController
  • Index(es):
    • Date
    • Thread