• 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
Object not being drawn in Cmd + N window. Why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Object not being drawn in Cmd + N window. Why?


  • Subject: Object not being drawn in Cmd + N window. Why?
  • From: Peter Teeson <email@hidden>
  • Date: Thu, 25 Oct 2012 15:08:48 -0400

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

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: lldb equivalent to gdb 'set pathname-substitutions'?
  • Next by Date: Something I don't understand about Resource Byte-swapping
  • Previous by thread: Re: lldb equivalent to gdb 'set pathname-substitutions'?
  • Next by thread: Something I don't understand about Resource Byte-swapping
  • Index(es):
    • Date
    • Thread