FROM : Michael A. Crawford
DATE : Mon Jan 12 03:59:02 2009
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
DATE : Mon Jan 12 03:59:02 2009
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
| Related mails | Author | Date |
|---|---|---|
| Michael A. Crawfor… | Jan 12, 03:59 | |
| Nick Zitzmann | Jan 12, 05:34 |






Cocoa mail archive

