Thanks for the reply.  I don't have many attributes here goes:

        [textView setTextColor:[NSColor colorWithCalibratedWhite:(250.0f / 
255.0f) alpha:1]];
        NSShadow *textShadow = [[NSShadow alloc] init];
        [textShadow setShadowOffset:NSMakeSize(-0.5, -1)];      
        [[textView textStorage] addAttributes:[NSDictionary 
dictionaryWithObject:textShadow forKey:NSShadowAttributeName] 
range:NSMakeRange(0, [[textView textStorage] length])];       
        [textView setFont:[NSFont boldSystemFontOfSize:10.0]];
        [textShadow release];

In the meantime fortunately I found that I was able to fix it by removing 
setTextColor: and inserting this:

        [textView setAlphaValue:.99];

I'm happy that I was able to fix it but still doesn't make sense that I had to 
change code to get the same look right?  I did not run a diff I can try that.  
I don't know if this is a common problem to have small issues like this when 
changing the main work setup, but I had no choice since we can't run 3.2.6 on 
Lion...

Thanks again I appreciate it!

rc



On Jul 17, 2011, at 1:20 AM, Jens Alfke wrote:

> 
> On Jul 16, 2011, at 5:14 AM, Rick C. wrote:
> 
>>  Now I have a project that had no issues in my old SL partition and when I 
>> have moved it over a panel in my project with an NSTextView has lost all the 
>> text formatting when I launch that panel.
> 
> Can you describe in more detail what’s changed? “Lost all the text 
> formatting” doesn’t really give me a clear idea of what’s wrong.
> 
> Have you tried comparing (i.e. using the ‘diff’ tool) the .xib files in the 
> two copies of the project?
> How about the generated .nib files in the build app bundles?
> 
> —Jens

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to