• 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
Dissappearing string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dissappearing string


  • Subject: Dissappearing string
  • From: Charlie Dickman <email@hidden>
  • Date: Mon, 14 May 2012 21:38:06 -0400

I can not for the life of me figure this one out.

Here is my code...
				PRINT_APPEND(@"\n%d", [theAttributedString retainCount]);
				DESCRIBE(theAttributedString);
				TRACE;
				[theSudokuTextField setAttributedStringValue: theAttributedString];
				theAttributedString = [theSudokuTextField attributedStringValue];
				PRINT_APPEND(@"\n%d", [theAttributedString retainCount]);
				DESCRIBE(theAttributedString);
				TRACE;

and this is the console output for an execution that works...

1
theAttributedString (NSConcreteAttributedString) ...
 2 3 4 6 8 { NSFont = "\"BaskOldFace 9.00 pt. P [] (0x1589f0) fobj=0x46a5e0, spc=2.25\"";}
-[Controller updatePossibilitiesDisplay:] @ 1133

3
theAttributedString (NSConcreteAttributedString) ...
 2 3 4 6 8 { NSFont = "\"BaskOldFace 9.00 pt. P [] (0x1589f0) fobj=0x46a5e0, spc=2.25\"";}
-[Controller updatePossibilitiesDisplay:] @ 1138

and this is the console output for an execution that works...

1
theAttributedString (NSConcreteAttributedString) ...
 1 2 3 4 5 6 7 8 9{ NSFont = "\"BaskOldFace 9.00 pt. P [] (0x119ce0) fobj=0x3e25bc0, spc=2.25\"";}
-[Controller updatePossibilitiesDisplay:] @ 1133

1
theAttributedString (NSConcreteAttributedString) ...

-[Controller updatePossibilitiesDisplay:] @ 1138

Note that the retainCount has changed in the first case but not in the second.
Does anyone have any ideas as to what is happening?

Charlie Dickman
email@hidden



_______________________________________________

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: Dissappearing string
      • From: Uli Kusterer <email@hidden>
    • Re: Dissappearing string
      • From: Graham Cox <email@hidden>
  • Prev by Date: HID Manager callbacks return 0 value for some devices
  • Next by Date: Re: iOS app launching speed
  • Previous by thread: HID Manager callbacks return 0 value for some devices
  • Next by thread: Re: Dissappearing string
  • Index(es):
    • Date
    • Thread