Re: KVC broken in 10.4.4 on Intel?
Re: KVC broken in 10.4.4 on Intel?
- Subject: Re: KVC broken in 10.4.4 on Intel?
- From: Shawn Erickson <email@hidden>
- Date: Sun, 29 Jan 2006 10:02:55 -0800
On Jan 28, 2006, at 6:30 PM, Da Woon Jung wrote:
Hi,
On my PowerBook G4 (PPC), the following works fine:
- (void)setFaintestVisible: (float)aValue
{
NSLog(@"%f", aValue);
}
//...elsewhere, inside a method...
[self setValue:[NSNumber numberWithFloat: 7.9f]
forKey:@"faintestVisible"];
// Prints 7.900000
In the above why not just do...
[self setFaintestVisible:7.9f];
If someone is using KVO they will still get notified of the change if
you use your accessor directly.
-Shawn
_______________________________________________
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