Re: NSObjectController HELP
Re: NSObjectController HELP
- Subject: Re: NSObjectController HELP
- From: Vince Ackerman <email@hidden>
- Date: Thu, 03 Jun 2004 08:57:22 -0700
Re: NSObjectController HELP
Cc: email@hidden
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Return-Path: : email@hidden
Duhooooh!! Stupid mistake.... I was using IBOutlet and converted these to instance variables without checking their case.
BUT, having changed them all, it still doesn't seem to work! I can't find an example of using a single controller, without arrays and without tableviews, using a single model object. I'm at a loss to figure out why this isn't working...
Thanks
Vince
On Jun 3, 2004, at 02:14, Christian Brunschen wrote:
You've named your instance variables with things starting with initial capital letters. This is contrary to the naming convention that Apple advocates, and which Key-Value Coding and Key-Value Observing *require*.
Instance variables should be named with an initial lower-case letter. So an instance variable should be named 'foo', *not* 'Foo'. The accessor methods associated with the 'foo' instance variable should be named 'foo' and 'setFoo:' respectively.
Apple have a document about naming conventions. The significance of naming to Cocoa Bindings is also explained in documentation about Cocoa Bindings, and about Key-Value Coding and Key-Value Observing.
Best wishes,
// Christian Brunschen
_______________________________________________
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.