Re: IB crash with custom binding
Re: IB crash with custom binding
- Subject: Re: IB crash with custom binding
- From: "Sean McBride" <email@hidden>
- Date: Wed, 23 Feb 2005 16:05:45 -0500
- Organization: Rogue Research
On 2005-02-23 14:40, Ricky Sharp said:
>But rather than calling these, I now do this in bind..
>
> observedObjectForBaseColor = anObservableController;
> observedKeyPathForBaseColor = [aKeyPath copy];
>
>and this in unbind...
>
> observedObjectForBaseColor = nil;
> [observedKeyPathForBaseColor release];
> observedKeyPathForBaseColor = nil;
>
>
>Previously, it was like this:
>
> [self setObservedObjectForBaseColor:anObservableController];
> [self setObservedKeyPathForBaseColor:aKeyPath];
>
>and
>
> [self setObservedObjectForBaseColor:nil];
> [self setObservedKeyPathForBaseColor:nil];
>
>
>Perhaps I've been staring at this code for too long, but aren't the
>accessor implementations doing the same exact thing as what I'm now doing
>(i.e. directly setting values)?
Your accessors are probably retaining, which you weren't doing previously.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden