Dissappearing string
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