• 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
Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings


  • Subject: Bindings
  • From: Sandro Noel <email@hidden>
  • Date: Sat, 26 May 2007 21:20:57 -0400

Greetings.

My god i tought bindings would be easy ,,,, :(

ok here is my case.

I have a NSMutableArray of NSNetService
now in my application controller i have this accessor

NSMutableArray *_servicesList;

...create the service List and scan for services and put them in the service list.

- (NSMutableArray *)servicesList{
	return _servicesList;
}
- (void)setServicesList: (NSMutableArray *)newServicesList{
	[_servicesList release];
	_servicesList = [newServicesList retain];
}
---------------------------

in interface builder.
i have a window with a TableView, with one column in it.
MyController is instantiated.

i have an NSObjectController Connected by the content outlet to the controller
i have an NSArrayController' content array is bound to the NSObject controller with the control key set to selection
and the Model key path set to "servicesList" the Class Name is set to NSNetService.


My TableView's Column Value is bouund to NSArrayController with the control Key Set to arrangedObjects
and the modelpath key set to the NSNETService hostName accessor.


and now for the grand finnaly :)

for every function call i have a NSLog output and the elements do get added to the Array, and i get a totol count of 8
but nothing ever show's up in the table's column ...


what have i forgotten ?

Thank you!


Sandro Noel email@hidden



_______________________________________________

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: Bindings
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Re: WebView using generated HTML string with Images
  • Next by Date: Re: Bindings
  • Previous by thread: Re: WebView using generated HTML string with Images
  • Next by thread: Re: Bindings
  • Index(es):
    • Date
    • Thread