(Followup Question) Makes int from pointer without cast
(Followup Question) Makes int from pointer without cast
- Subject: (Followup Question) Makes int from pointer without cast
- From: Kodex <email@hidden>
- Date: Mon, 14 Mar 2005 11:21:52 -0800 (PST)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Ok second question then, since im not that experinced
with tables i have been shooting in the dark here
working with example codes off the archives and such.
How can i modify my existing code to allow for color
changes? Any example code pointers would help greatly.
Thanks
--- j o a r <email@hidden> wrote:
>
> 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
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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