Re: code for drawing an NSTextField to a panel window ...

2009-03-13 Thread Paul Sanders
> Writing your GUI in code is a useful and educational exercise. But it > will only be useful and educational if you do it *after* you are > already proficient with the standard way of doing things. Get good > with the basics (which means using nibs), and once you're comfortable > with that, you'll

Re: code for drawing an NSTextField to a panel window ...

2009-03-13 Thread Michael Ash
On Fri, Mar 13, 2009 at 8:01 AM, vinai wrote: > > Hi All, > > Thanks for your feedback.  I AM coming from a non-Cocoa background, and I was > hoping to keep some picture of how the GUI was interacting with my code at a > fairly low level. Crawl before you walk, walk before you run. Writing you

Re: code for drawing an NSTextField to a panel window ...

2009-03-13 Thread vinai
Hi All, Thanks for your feedback. I AM coming from a non-Cocoa background, and I was hoping to keep some picture of how the GUI was interacting with my code at a fairly low level. My previous experience is with an X11+motif application that did real-time data acquisition from an A/D card, an

Re: code for drawing an NSTextField to a panel window ...

2009-03-12 Thread Sidney San Martín
Remember that Interface Builder does not generate code! It saves a representation of the interface and its associated objects to a nib file which is read at runtime. Generating your interface by hand will not tell you what's going on behind the scenes, and IB is much more appropriate than c

Re: code for drawing an NSTextField to a panel window ...

2009-03-12 Thread Jesper Storm Bache
hanks --- On Thu, 3/12/09, I. Savant wrote: From: I. Savant Subject: Re: code for drawing an NSTextField to a panel window ... To: for_use...@yahoo.com Cc: Cocoa-dev@lists.apple.com Date: Thursday, March 12, 2009, 12:00 PM On Wed, Mar 11, 2009 at 12:11 PM, vinai wrote: where rawButtonRect is an N

Re: code for drawing an NSTextField to a panel window ...

2009-03-12 Thread Chris Hanson
On Mar 12, 2009, at 4:41 PM, vinai wrote: The complete code for the object is attached. I guess I am still more than a little perplexed why the window itself is being drawn fine, but I can't get any elements (like the text field) drawn to the panel view. Glancing at your code, I don't ha

Re: code for drawing an NSTextField to a panel window ...

2009-03-12 Thread vinai
gt; Subject: Re: code for drawing an NSTextField to a panel window ... > To: for_use...@yahoo.com > Cc: Cocoa-dev@lists.apple.com > Date: Thursday, March 12, 2009, 12:00 PM > On Wed, Mar 11, 2009 at 12:11 PM, vinai > wrote: > > > where rawButtonRect is an NSRect, contectR

Re: code for drawing an NSTextField to a panel window ...

2009-03-12 Thread I. Savant
On Wed, Mar 11, 2009 at 12:11 PM, vinai wrote: > where rawButtonRect is an NSRect, contectRect defines the panel window I am > trying to draw to, and rawTextField is of * NSTextField type. mainPanelView > is the view for the mainPanel window, and rawTextField is just one of the > subviews I a