• 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: Trying to set pop-up button list of fonts to attributed font names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to set pop-up button list of fonts to attributed font names


  • Subject: Re: Trying to set pop-up button list of fonts to attributed font names
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 02 Oct 2014 19:44:27 +1000

I mis-typed -- it's setAttributedTitle:.

My point was simply that you've done the research and found the method, but haven't used it.

But now that I look at your code again, you *have* tried to use it -- it just wasn't where I'd expect to see it. So this gets back to my list of points:

>> Are you calling methods on the right things?

Here's your code:

> my fontButton's |menu|()'s addItemWithTitle_action_keyEquivalent_(setAttributedTitle_(eachAttributedFontString), "changeTheFont:", "")

And we know it's -setAttributedTitle:, so therefore it's an instance method, and we know from the documentation it's an NSMenuItem method. So what are you calling it on? Your code shows that you're not calling it on anything it all, except perhaps a prayer.

Is that enough of a clue?



--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Trying to set pop-up button list of fonts to attributed font names
      • From: Brian Christmas <email@hidden>
References: 
 >Trying to set pop-up button list of fonts to attributed font names (From: Brian Christmas <email@hidden>)
 >Re: Trying to set pop-up button list of fonts to attributed font names (From: Shane Stanley <email@hidden>)
 >Re: Trying to set pop-up button list of fonts to attributed font names (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: Trying to set pop-up button list of fonts to attributed font names
  • Next by Date: Re: Trying to set pop-up button list of fonts to attributed font names
  • Previous by thread: Re: Trying to set pop-up button list of fonts to attributed font names
  • Next by thread: Re: Trying to set pop-up button list of fonts to attributed font names
  • Index(es):
    • Date
    • Thread