Re: Makes int from pointer without cast
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