• 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: Catching actions of fonts "Typography" panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Catching actions of fonts "Typography" panel


  • Subject: Re: Catching actions of fonts "Typography" panel
  • From: "Rimas M." <email@hidden>
  • Date: Thu, 25 Aug 2011 09:43:02 +0300

You are absolutely right, Martin. That was I have thought at the beginning.
But it didn't worked. Now I have checked more deeply and looks like I have a
bug in my responders chain which prevents me from getting changeAttributes:.

Best Regards,

Rimas M.

On Thu, Aug 25, 2011 at 1:04 AM, Martin Wierschin <email@hidden> wrote:

The actions you mentioned, font typography options set via Apple's
> Typography panel, will send "changeAttributes:" to the first responder. In
> your method implementation you'll want to call "convertAttributes:" on the
> "sender", eg:
>
> - (void) changeAttributes:(id)sender
> {
>        NSDictionary* oldAttrs = [self myCurrentAttributes];
>        NSDictionary* newAttrs = [sender convertAttributes:oldAttrs];
>        // ferret out changes
> }
>
> If you have a NSTextView subclass you can override that method and do the
> work there just as easily.
>
> ~Martin
>
>
_______________________________________________

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

References: 
 >Catching actions of fonts "Typography" panel (From: "Rimas M." <email@hidden>)
 >Re: Catching actions of fonts "Typography" panel (From: Mike Abdullah <email@hidden>)
 >Re: Catching actions of fonts "Typography" panel (From: "Rimas M." <email@hidden>)
 >Re: Catching actions of fonts "Typography" panel (From: Martin Wierschin <email@hidden>)

  • Prev by Date: Re: NSInvocationOperations mysteriously whacked out of NSOperationQueue
  • Next by Date: Re: Crash using NSOpenPanel TFSVolumeInfo::GetSyncGCDQueue[SOLVED]
  • Previous by thread: Re: Catching actions of fonts "Typography" panel
  • Next by thread: Representation of strings with special chars
  • Index(es):
    • Date
    • Thread