Re: IB bug? - copyWithZone: selector not recognized
Re: IB bug? - copyWithZone: selector not recognized
- Subject: Re: IB bug? - copyWithZone: selector not recognized
- From: Bill Cheeseman <email@hidden>
- Date: Wed, 28 Aug 2002 04:27:06 -0400
on 02-08-27 10:19 PM, Chris Kane at email@hidden wrote:
>
One has to be careful when converting occurrences of old
>
-decodeValueOfObjCType:at:, -decodeValuesOfObjCTypes:, and
>
-decodeArrayOfObjCType:count:at: methods to -decodeObjectForKey:, if
>
you've done keyed coding conversion (I missed the first part of this
>
thread), as the latter gives you an autoreleased object which needs
>
retaining, unlike the formers. If you've done conversion, you may want
>
to check over your changes. An "unretained" object would explain
>
errors like this.
Now, that shows just amazing insight! -- or maybe you guys have been bitten
by this many times, yourselves? I have in fact made these conversions, and
by golly I forgot to add retain calls. Thanks for the explanation.
I guess I'd better make a slight revision to my Stepwise article about keyed
archiving....
So it's no surprise that Apple has looked at my nib files and sees nothing
wrong with them.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
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.