• 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: Re: Cocoa Bindings Question(s)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Cocoa Bindings Question(s)


  • Subject: Re: Re: Cocoa Bindings Question(s)
  • From: <email@hidden>
  • Date: Tue, 20 Jul 2004 13:17:49 -0400

> From: mmalcolm crawford <email@hidden>
> On Jul 20, 2004, at 6:18 AM, email@hidden wrote:
>
> > When it's named setBooksList, and the array is created in -init, it is
> > called. (when the array is not created, the error is shown).
> > When it's named setbooksList, whether or not the array is created in
> > -init, the method is NOT called. The booksList variable must be being
> > access directly? Something strange is going on... does capitalization
> > matter or not?
> >
> Capitalisation is important:
> <http://developer.apple.com/documentation/Cocoa/Conceptual/
> KeyValueCoding/Concepts/AccessorConventions.html>
>
> I'll file a bug to have a sentence added to make explicit that this is
> the case (pun sort of intended).
>
> mmalc

Just so I understand.. when the captialization is wrong (setbooksList), the method is "not found", so the member variable is accessed directly (and the array is created if necessary? since not having the alloc/init still works), but when named correctly (setBooksList), it's "found" and accessed, but the array (or item) is null so the error is generated.

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


  • Prev by Date: Lost in Linking a Framework within the App bundle
  • Next by Date: Re: cocoa app from scratch
  • Previous by thread: Re: Cocoa Bindings Question(s)
  • Next by thread: Help Reader
  • Index(es):
    • Date
    • Thread