• 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: Controller Layer + array count + NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Controller Layer + array count + NSOutlineView


  • Subject: Re: Controller Layer + array count + NSOutlineView
  • From: Brian Webster <email@hidden>
  • Date: Wed, 12 Nov 2003 17:08:31 -0600

I just ran into this same situation, except that I don't get a crash, I get an exception thrown which prints out something like:

[<NSCFArray 0x59ae90> addObserver:forKeyPath:options:context:] is not supported. Key path: @count

Anyone ever figure out how to get this to work?

On Nov 7, 2003, at 6:06 AM, Raphael Sebbe wrote:

Hi,

I have an array of Layers:

Layer
{
NSString _name;
NSMutableArray _curves;
}


and I want to show layer names and curve counts in a tableview (_curves is properly init'ed).

I use the "name" key path of NSArrayController for name, it works. I use the "curves.@count" of the same controller, it doesn't work, crashes. Isn't it allowed to access count ?

Second question. I noticed the answer from Scott about using Controller Layer + NSOutlineView, could someone elaborate on this or share its experience as I was not able to fill the outline view at all.

Many thanks,

Raphael
_______________________________________________
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.


--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.

References: 
 >Controller Layer + array count + NSOutlineView (From: Raphael Sebbe <email@hidden>)

  • Prev by Date: Re: Recursive Downloads (FTP/CURL?)
  • Next by Date: Re: Extending NSURLProtocol
  • Previous by thread: Re: Controller Layer + array count + NSOutlineView
  • Next by thread: Check for updates
  • Index(es):
    • Date
    • Thread