• 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: Makes int from pointer without cast
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Makes int from pointer without cast


  • Subject: Re: Makes int from pointer without cast
  • From: Stephane Sudre <email@hidden>
  • Date: Mon, 14 Mar 2005 18:56:49 +0100


On 14 mars 05, at 18:45, Kodex wrote:

id objectValue = nil;
NSString *server;

	if(somethingTrue)
	{
		objectValue = [[NSMutableAttributedString alloc]
initWithString:server];
		[objectValue applyFontTraits:[NSColor blueColor]
range:NSMakeRange(0, [server length])];
		[objectValue autorelease];

		return objectValue;
	}

can someone tell me why this dosnt work correctly? Thanks

Because [NSColor blueColor] is not a NSFontTraitMask as explained in the documentation?


_______________________________________________
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: 
 >Makes int from pointer without cast (From: Kodex <email@hidden>)

  • Prev by Date: Re: Makes int from pointer without cast
  • Next by Date: Loading local frameworks from plugin bundles
  • Previous by thread: Re: Makes int from pointer without cast
  • Next by thread: Loading local frameworks from plugin bundles
  • Index(es):
    • Date
    • Thread