• 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: please help: menu items with attributed strings are appearing blank
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: please help: menu items with attributed strings are appearing blank


  • Subject: Re: please help: menu items with attributed strings are appearing blank
  • From: "Alan Smith" <email@hidden>
  • Date: Tue, 7 Nov 2006 12:36:19 -0500

Hello,

Your code works fine for me. Try this instead:

NSDictionary *attributes = [NSDictionary dictionaryWithObject: [NSFont
fontWithName: @"Monaco" size: 9] forKey: NSFontAttributeName];
	NSMutableAttributedString *attString = [[NSMutableAttributedString
alloc] initWithString: @"Testing 123" attributes: attributes];

If you use that take out the addAttribute stuff.

Enjoy, Alan

--
// Quotes from yours truly -------------------------
"You don't forget, you just don't remember."
"Maturity resides in the mind."
"Silence is the Universe's greatest gift."
"When the World realizes that religion really is unimportant, then it
shall evolve."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >please help: menu items with attributed strings are appearing blank (From: mercer <email@hidden>)

  • Prev by Date: Re: [NSCalendar currentCalendar] leak
  • Next by Date: Re: AuthSample Code?
  • Previous by thread: please help: menu items with attributed strings are appearing blank
  • Next by thread: Polished metal.. and tabview!
  • Index(es):
    • Date
    • Thread