No I'm actually doing it before I display the panel.  I believe Rich Text is
enabled in IB I can try disabling it (seems I tried this already) to see if
it makes a difference.  And unfortunately my "solution" of setting the alpha
value is not without issue, the text will only display properly after I
scroll just a little.  But when the panel is opened without touching it
doesn't display properly.  So I guess I really have to figure this out I'll
post back thanks!


On Sun, Jul 17, 2011 at 11:07 AM, Kyle Sluder <kyle.slu...@gmail.com> wrote:

> On Sat, Jul 16, 2011 at 7:47 PM, Rick C. <rickcort...@gmail.com> wrote:
> > 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];
>
> Are you doing this in -awakeFromNib? I'm wondering if the nib got
> rejiggered in the transition, and now NSTextView's -awakeFromNib is
> causing it to not accept rich text at the time you're manipulating its
> text storage, only to turn on rich text right afterwards.
>
> --Kyle Sluder
>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to