• 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
How do I know when a new object is added to an NSArray or NSCollectionView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I know when a new object is added to an NSArray or NSCollectionView?


  • Subject: How do I know when a new object is added to an NSArray or NSCollectionView?
  • From: Brad Stone <email@hidden>
  • Date: Fri, 8 Jan 2010 20:02:45 -0500

I'd like a viewController to be notified whenever an arrayController adds a new object.  Here's why:

I have an NSTextField in a view that gets added in an NSCollectionView.  There's also an array controller and when I fire the "add:" selector the new view shows up in the collection.  The view that gets added has an NSTextField in it and I want the cursor to be in there and ready so the user can just start typing.   So I guess this is a two-part question:
1) how do I get notified if a new object is added?
2) how do I make the NSTextField in the view that just was added ready and waiting to be typed in?

Thanks!_______________________________________________

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: How do I know when a new object is added to an NSArray or NSCollectionView?
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Using a NSButtonCell with template image in a NSTableView, through Interface Builder
  • Next by Date: Supported API for handling bad server certificates in NSURLConnection
  • Previous by thread: Using a NSButtonCell with template image in a NSTableView, through Interface Builder
  • Next by thread: Re: How do I know when a new object is added to an NSArray or NSCollectionView?
  • Index(es):
    • Date
    • Thread