Re: NSTextField woes

2009-03-04 Thread Robert Bielik
Nick Zitzmann skrev: Did you try -setTextColor:? setTextColor sets the nominal text color of the NSTextField, works fine, but I want a *different* color when the text (or part of it) is selected in the NSTextField (for contrast) and setTextColor has nothing to do with that... /R _

Re: NSTextField woes

2009-03-04 Thread David Blanton
the following works for me ... NSMutableParagraphStyle *ps; ps = [[NSMutableParagraphStyle alloc] init]; [ps setAlignment:NSLeftTextAlignment]; _leftAlign = [[NSDictionary alloc] initWithObjectsAndKeys: [NSFont systemFontOfSiz

Re: NSTextField woes

2009-03-04 Thread Nick Zitzmann
On Mar 4, 2009, at 12:13 PM, Robert Bielik wrote: but noo... I can't get anything but the default color, i.e. same as the normal text color. Ideas? Did you try -setTextColor:? Nick Zitzmann ___ Cocoa-dev mailing l

NSTextField woes

2009-03-04 Thread Robert Bielik
Hi all, I have a NSTextField in which I'd like to change the selected text color. From various sources I've got this: NSTextView* tv = (NSTextView*)[[m_nstextfield window] fieldEditor:YES forObject:m_nstextfield]; [tv setSelectedTextAttributes:[NSDictionary dictionaryWithObject:[NSColor black