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

Re: Cocoa Bindings Question(s)


  • Subject: Re: Cocoa Bindings Question(s)
  • From: John Tsombakos <email@hidden>
  • Date: Sat, 17 Jul 2004 01:48:19 -0400

Well, I got it to work. I added:

[self setBooksList:[NSMutableArray array]];

To the init method. I'll have to wait until Monday to check the other
system, but I'm pretty sure I didn't do anything like this and that one
is working just fine.

Thanks for all the help!

On Jul 17, 2004, at 12:07 AM, mmalcolm crawford wrote:

>
> On Jul 16, 2004, at 8:39 PM, John Tsombakos wrote:
>> - (void) setBooksList:(NSMutableArray *)newBooks
>> {
>> [booksList autorelease];
>> booksList = newBooks;
>> }
>> (patterened after several examples)
>>
> I hope not! :-)
>
> - (void) setBooksList:(NSMutableArray *)newBooks
> {
> if (newBooks != booksList)
> {
> [booksList autorelease];
> booksList = [newBooks retain];
> // or, probably better here:
> // booksList = [newBooks mutableCopy];
> }
> }
>
> mmalc
_______________________________________________
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: 
 >Re: Re: Cocoa Bindings Question(s) (From: <email@hidden>)
 >Re: Cocoa Bindings Question(s) (From: mmalcolm crawford <email@hidden>)
 >Re: Cocoa Bindings Question(s) (From: John Tsombakos <email@hidden>)
 >Re: Cocoa Bindings Question(s) (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: Cocoa Bindings Question(s)
  • Next by Date: Re: Cocoa Bindings Question(s)
  • Previous by thread: Re: Cocoa Bindings Question(s)
  • Next by thread: Re: Cocoa Bindings Question(s)
  • Index(es):
    • Date
    • Thread