Xcode 4.5.1 Lion 10.7.4
I have desktop Document project with a sub-class of NSView. Debug only version 
as of now.
The Window has 2 instances of this sub-class (basically squares that have 
gradients);
The only difference between the two instances are the start and stop mid points 
for the gradients.

When I Run it to debug, a Document window opens and behaves as I expect.
In particular both instances of the sub-class are drawn in the window.

The Problem:
But when I Cmd + N to get a new document then only one of the sub-class objects 
is drawn.
The one that is not drawn is the second instance I added yesterday.
As I said the only difference between the two instances is the value of an ivar 
(which I set 
appropriately in Document.m awakeFromNib.)

My efforts to track this down have failed and I lack understanding how this 
could happen.
After all they are using the same nib (xib). And indeed the value of each 
pointer to the instances
are not zero. And the various ivars are correctly initialized.

The Questions:
How could this happen? How can I try to track it down?

TIA & respect…
Peter

P.S. I first posted this to the Xcode list but was advised to post here instead.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to