• 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
NSMutableAttributedString, NSFontAttributeName, and reference counting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMutableAttributedString, NSFontAttributeName, and reference counting


  • Subject: NSMutableAttributedString, NSFontAttributeName, and reference counting
  • From: "Michael A. Crawford" <email@hidden>
  • Date: Sun, 11 Jan 2009 18:59:02 -0800

If I allocate a font object for use with NSMutableAttributedString and assign said font to the string using the addAttribute method, will the reference count on the font be incremented? (I assume that if the answer is yes, then removeAttribute will decrement the reference count.)

As a bonus question, can I observe this in the debugger (seems like a useful skill in order to avoid similar questions along these lines in the future)? If so, how is that accomplished.

-Michael
----------------------
The difference between genius and stupidity...
...is that genius has its limits."

-- Albert Einstein

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: NSMutableAttributedString, NSFontAttributeName, and reference counting
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: What is the equivalent of a C++ pure-virtual function in Objective-C?
  • Next by Date: Implementing an Inspector similar to the one in IB.
  • Previous by thread: Re: What is the equivalent of a C++ pure-virtual function in Objective-C?
  • Next by thread: Re: NSMutableAttributedString, NSFontAttributeName, and reference counting
  • Index(es):
    • Date
    • Thread