• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: strange NSTextView problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strange NSTextView problem


  • Subject: Re: strange NSTextView problem
  • From: Rick Corteza <email@hidden>
  • Date: Sun, 17 Jul 2011 16:32:07 +0800

ok i tried a diff and it prints out nothing for the .xib files.  now for the
compiled .nib files it simply prints out differ but how to get more info out
of it?  can it do a proper diff on a compiled nib?



On Sun, Jul 17, 2011 at 11:07 AM, Kyle Sluder <email@hidden> wrote:

> On Sat, Jul 16, 2011 at 7:47 PM, Rick C. <email@hidden> 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 (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: strange NSTextView problem
      • From: Andy Lee <email@hidden>
References: 
 >strange NSTextView problem (From: "Rick C." <email@hidden>)
 >Re: strange NSTextView problem (From: Jens Alfke <email@hidden>)
 >Re: strange NSTextView problem (From: "Rick C." <email@hidden>)
 >Re: strange NSTextView problem (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: strange NSTextView problem
  • Next by Date: Re: strange NSTextView problem
  • Previous by thread: Re: strange NSTextView problem
  • Next by thread: Re: strange NSTextView problem
  • Index(es):
    • Date
    • Thread