Re: NSControl objects on a custom view

2010-06-14 Thread Florian Soenens
Hi Jens, thanks for the answer. If you drag an NSTextfield on your custom view in Interface Builder, doesn't it become a subview automatically? On 11 Jun 2010, at 19:03, Jens Alfke wrote: On Jun 11, 2010, at 7:04 AM, Florian Soenens wrote: When i put default buttons or a NSSearchfield or

Re: NSControl objects on a custom view

2010-06-14 Thread jonat...@mugginsoft.com
On 14 Jun 2010, at 10:54, Florian Soenens wrote: Hi Jens, thanks for the answer. If you drag an NSTextfield on your custom view in Interface Builder, doesn't it become a subview automatically? Yes it does. In Xcode shift + right mouse click on a view to see the view hierarchy.

Re: NSControl objects on a custom view

2010-06-14 Thread Florian Soenens
Then my NSTextField is a subview of my custom view but still displays with a background, that's the behavior i don't want. Can this be fixed somehow? On 14 Jun 2010, at 12:03, jonat...@mugginsoft.com wrote: On 14 Jun 2010, at 10:54, Florian Soenens wrote: Hi Jens, thanks for the

Re: NSControl objects on a custom view

2010-06-14 Thread jonat...@mugginsoft.com
On 14 Jun 2010, at 12:28, Florian Soenens wrote: Then my NSTextField is a subview of my custom view but still displays with a background, that's the behavior i don't want. Can this be fixed somehow? On 14 Jun 2010, at 12:03, jonat...@mugginsoft.com wrote: Do you want the gradient to

Re: NSControl objects on a custom view

2010-06-14 Thread Florian Soenens
That's what i thought at first, but i seem to fill the whole [self bounds] with the gradient. On a sidenote, if i put a custom NSSearchfield onto my custom gradient view, the behavior is more obvious then with a default NSSearchfield, am i overlooking something in the NSSearchFieldCell behavior

Re: NSControl objects on a custom view

2010-06-14 Thread jonat...@mugginsoft.com
On 14 Jun 2010, at 13:02, Florian Soenens wrote: That's what i thought at first, but i seem to fill the whole [self bounds] with the gradient. On a sidenote, if i put a custom NSSearchfield onto my custom gradient view, the behavior is more obvious then with a default NSSearchfield, am i

Re: NSControl objects on a custom view

2010-06-11 Thread Jens Alfke
On Jun 11, 2010, at 7:04 AM, Florian Soenens wrote: When i put default buttons or a NSSearchfield or a NSProgressindicator on top of my custom view, the subitems display a background. By “on top of”, do you mean they’re subviews of your custom view, or siblings that are just positioned in