Re: NSToolbar Problem
Re: NSToolbar Problem
- Subject: Re: NSToolbar Problem
- From: "Sean McBride" <email@hidden>
- Date: Fri, 1 Apr 2005 13:53:55 -0500
- Organization: Rogue Research
On 2005-04-01 13:28, Julian Cain said:
>> [(_imageLeft = [[NSImage imageNamed:@"TB_Segment_LeftCap"] retain])
>> setFlipped:YES];
>
>Please RTFM, and you'll see that the -setFlipped: method does not
>return an object.
Indeed. How is it that this compiles? I just tried the following line:
NSImage* testImg = [[[NSImage imageNamed:@"test"] setFlipped:YES] retain];
with -Wall and gcc 3.3 and there is no warning or error! It seems to me
it should be an error, but I'm no language lawyer.
CodeWarrior 9.4 does error out:
Error : illegal message receiver
Test.m line 1068 Image* testImg = [[[NSImage imageNamed:@"test"]
setFlipped:YES] retain];
hmmmm
--
____________________________________________________________
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