• 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: IB crash with custom binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: IB crash with custom binding (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: IB crash with custom binding
  • Next by Date: Re: IB crash with custom binding
  • Previous by thread: Re: IB crash with custom binding
  • Next by thread: Re: IB crash with custom binding
  • Index(es):
    • Date
    • Thread