Re: Problem setting up custom toolbar item in IB

2009-01-20 Thread Jonathan Hess
Hey Chunk - These are two distinct problems. The problem you are describing is that the z-order of the subviews of a custom view are reversed at runtime. Jon Hess On Jan 19, 2009, at 11:21 PM, Chunk 1978 wrote: not sure if it's related to a problem i've recently solved with custom views:

Re: Problem setting up custom toolbar item in IB

2009-01-20 Thread Rob Keniger
On 20/01/2009, at 5:21 PM, Chunk 1978 wrote: not sure if it's related to a problem i've recently solved with custom views: i was trying to display a label "inside" a button, but the label wouldn't show when built, only the button. for some sketchy reason i had to place the label under the but

Re: Problem setting up custom toolbar item in IB

2009-01-19 Thread Chunk 1978
not sure if it's related to a problem i've recently solved with custom views: i was trying to display a label "inside" a button, but the label wouldn't show when built, only the button. for some sketchy reason i had to place the label under the button in the NIB because the app build was displayi

Re: Problem setting up custom toolbar item in IB

2009-01-19 Thread Graham Cox
On 20 Jan 2009, at 5:29 pm, Joey Hagedorn wrote: Hm, maybe this is an issue with the custom view in your nib. Perhaps try putting your text fields inside, say, a borderless NSBox instead? Hi Joey, yes this seems to be the case. NSBox works OK. thanks! --Graham _

Re: Problem setting up custom toolbar item in IB

2009-01-19 Thread Graham Cox
On 20 Jan 2009, at 3:55 pm, Graham Cox wrote: When my controller tries to set one of the field's values I get either a EXC_BAD_ACCESS, or an exception that NSData doesn't implement -setFloatValue:, but at awakeFromNib time I can see the text field outlets are set and are indeed NSTextField

Re: Problem setting up custom toolbar item in IB

2009-01-19 Thread Joey Hagedorn
Graham, Hm, maybe this is an issue with the custom view in your nib. Perhaps try putting your text fields inside, say, a borderless NSBox instead? -Joey On Jan 19, 2009, at 8:55 PM, Graham Cox wrote: I'm having trouble setting up a custom toolbar item. It looks like it should work and

Problem setting up custom toolbar item in IB

2009-01-19 Thread Graham Cox
I'm having trouble setting up a custom toolbar item. It looks like it should work and appears in IB OK but doesn't come up correctly at runtime. I must be doing something wrong: The toolbar item consists of a pair of NSTextFields and some labels. They must be grouped together as a single t