• 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: NSArrayController and bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArrayController and bindings


  • Subject: Re: NSArrayController and bindings
  • From: Rob Borsuk <email@hidden>
  • Date: Tue, 24 Feb 2004 15:49:51 -0500

On Feb 24, 2004, at 3:29 PM, mmalcolm crawford wrote:

I would like to be able to count the dictionary objects but it doesn't seem that NSArrayController (though using 'Array' in the name) has a 'count' method.

Use the array operator @count.

When I assign the arraycontroller to an IBOutlet and then do a count I get:
-[NSArrayController count]: selector not recognized

I'm misunderstanding, aren't I? Do I need to somehow bind the arraycontroller to FilesOwner versus using an IBOutlet? Maybe using contentArray?


I would like to be able to write the "array" out as a text file (viola - plist) but it seems that it likes to save as a encoded format.

In the most likely scenario, the NSController is simply managing the *display* of the array, the array itself is still managed by a classic custom "controller" which should be responsible for saving and loading...
So would I subclass Arraycontroller versus binding to a NSDocument to gain this functionality?

mmalc

Thanks
Rob

Rob Borsuk
email: email@hidden
Colourfull Creations
Web: http://www.colourfull.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: NSArrayController and bindings
      • From: Bjoern Kriews <email@hidden>
    • Re: NSArrayController and bindings
      • From: mmalcolm crawford <email@hidden>
References: 
 >NSArrayController and bindings (From: Rob Borsuk <email@hidden>)
 >Re: NSArrayController and bindings (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: access to DOM from the WebKit
  • Next by Date: Re: NSArrayController and bindings
  • Previous by thread: Re: NSArrayController and bindings
  • Next by thread: Re: NSArrayController and bindings
  • Index(es):
    • Date
    • Thread