Custom view resizing

2009-05-29 Thread Robert Olivier
I'm a new Cocoa programmer working on my first non-trivial custom view and I have a question regarding the right way to handle view resizing. Say that I have a list of shapes that I need to draw left to right across my view, and this list grows over time. Eventually, I will need to draw

Re: Custom view resizing

2009-06-01 Thread Robert Olivier
Thanks Graham, While I was waiting for my post to get moderated I did implement the data model method of calculating the view bounds and thats working great. rjo On May 29, 2009, at 11:55 PM, Graham Cox wrote: On 29/05/2009, at 10:14 AM, Robert Olivier wrote: I'm a new

window does not seem to respond to orderOut:

2009-06-02 Thread Robert Olivier
I'm implementing a shared inspector and following the guidance at http://borkware.com/rants/inspectors/ I have a method in my NSWindowController subclass: - (void) toggle { if(!visible) { visible = true; [self setDocument: [[NSDocumentController sharedDocumentControlle

Re: window does not seem to respond to orderOut:

2009-06-02 Thread Robert Olivier
Never mind ... silly newbie mistake .. didn't have the window outlet set in IB. rjo On Jun 2, 2009, at 8:15 PM, Robert Olivier wrote: I'm implementing a shared inspector and following the guidance at http://borkware.com/rants/inspectors/ I have a method in my NSWindowControlle