• 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: NSToolbar Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: NSToolbar Problem (From: Julian Cain <email@hidden>)

  • Prev by Date: Re: NSToolbar Problem
  • Next by Date: Re: multiple keys for object?
  • Previous by thread: Re: NSToolbar Problem
  • Next by thread: Re: NSToolbar Problem
  • Index(es):
    • Date
    • Thread