• 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: j o a r <email@hidden>
  • Date: Mon, 14 Mar 2005 18:58:51 +0100


On 2005-03-14, at 18.45, Kodex wrote:

id objectValue = nil;

Why do you type this as "id", rather than NSMutableAttributedString?

NSString *server;

I hope you assign something to this variable before...

	if(somethingTrue)
	{
		objectValue = [[NSMutableAttributedString alloc]
initWithString:server];

...you try to create a string with it here!

		[objectValue applyFontTraits:[NSColor blueColor]
range:NSMakeRange(0, [server length])];

This is the problem, the method takes this data type:

typedef unsigned int NSFontTraitMask;

...and not an instance of NSFont!

		[objectValue autorelease];

		return objectValue;
	}

can someone tell me why this dosnt work correctly? Thanks

j o a r

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: Web Services
  • Next by Date: Re: Makes int from pointer without cast
  • Previous by thread: Makes int from pointer without cast
  • Next by thread: Re: Makes int from pointer without cast
  • Index(es):
    • Date
    • Thread