AW: AW: NSColorWell shows no color

2008-12-31 Thread tobias assmann
smann CC: cocoa-dev@lists.apple.com Gesendet: Mittwoch, den 31. Dezember 2008, 05:04:26 Uhr Betreff: Re: AW: NSColorWell shows no color On Dec 30, 2008, at 2:22 PM, tobias assmann wrote: > I have built the stuff in IB. And looking into the nib file again, I have > seen the should really sho

Re: AW: NSColorWell shows no color

2008-12-30 Thread Andy Lee
On Dec 30, 2008, at 7:58 PM, Graham Cox wrote: Maybe posting the code where you create the preferences window controller and load the nib might shed some light. Also, since at one point you were doing something in drawRect:, it sounds like you're using a custom view? Can you tell us more ab

Re: AW: NSColorWell shows no color

2008-12-30 Thread Andy Lee
An: tobias assmann CC: cocoa-dev@lists.apple.com Gesendet: Dienstag, den 30. Dezember 2008, 12:22:11 Uhr Betreff: Re: NSColorWell shows no color On 30 Dec 2008, at 10:09 pm, tobias assmann wrote: I changed the place of the initialization now. Still no difference.. The colors are valid. I

Re: AW: NSColorWell shows no color

2008-12-30 Thread Graham Cox
On 31 Dec 2008, at 6:22 am, tobias assmann wrote: Is there a way to have a closer look at the code produced by IB?? Maybe something is happening there. Well, IB doesn't produce code - common misconception. It consists of an archive of objects only. When the nib is loaded, code runs that

Re: AW: NSColorWell shows no color

2008-12-30 Thread Benjamin Dobson
On 30 Dec 2008, at 19:22:04, tobias assmann wrote: // InActiveBeatColor has been selected - (IBAction)iaSelectInactiveBeatColor:(id)sender{ [topv.colors setColor:[sender color] forKey:@"inactiveBeat"]; } You can probably do this using Bindings. http://developer.apple.com/documentation/Co

AW: NSColorWell shows no color

2008-12-30 Thread tobias assmann
:22:11 Uhr Betreff: Re: NSColorWell shows no color On 30 Dec 2008, at 10:09 pm, tobias assmann wrote: > I changed the place of the initialization now. Still no difference.. The > colors are valid. I checked this and also tried with predefined colors like > [NSColor greenColor]. It seems a v

Re: NSColorWell shows no color

2008-12-30 Thread Graham Cox
On 30 Dec 2008, at 10:09 pm, tobias assmann wrote: I changed the place of the initialization now. Still no difference.. The colors are valid. I checked this and also tried with predefined colors like [NSColor greenColor]. It seems a very strange problem to me. So am I right if I think, the

RE: NSColorWell shows no color

2008-12-30 Thread tobias assmann
make sense I my opinion. Tobias Von: Graham Cox An: tobias assmann CC: cocoa-dev@lists.apple.com Gesendet: Dienstag, den 30. Dezember 2008, 11:48:51 Uhr Betreff: Re: NSColorWell shows no color On 30 Dec 2008, at 9:40 pm, tobias assmann wrote: > I know

Re: NSColorWell shows no color

2008-12-30 Thread Graham Cox
On 30 Dec 2008, at 9:40 pm, tobias assmann wrote: I know it is an unusual place for setting the color. It's not unusual, it's wrong. When the colour well's setColor: method is called, one thing it will do is invalidate itself by calling setNeedsDisplay: which will cause drawRect: to get

RE: RE: NSColorWell shows no color

2008-12-30 Thread tobias assmann
Von: Quincey Morris An: cocoa-dev@lists.apple.com Gesendet: Dienstag, den 30. Dezember 2008, 07:53:43 Uhr Betreff: Re: NSColorWell shows no color On Dec 27, 2008, at 02:13, tobias assmann wrote: > I use some NSColorWell objects in a preference section of my view. User can >

Re: NSColorWell shows no color

2008-12-29 Thread Quincey Morris
On Dec 27, 2008, at 02:13, tobias assmann wrote: I use some NSColorWell objects in a preference section of my view. User can chosse so me colors there. All works fine exept one thing. The NSColorWell objects are initialized with default values out of a NSColorList when the UI is opened. But

NSColorWell shows no color

2008-12-29 Thread tobias assmann
Hello all, I hope my question is not that stupid. I wouldn`t ask, if I knew anything more to do. Seems like I am stuck with this: I use some NSColorWell objects in a preference section of my view. User can chosse so me colors there. All works fine exept one thing. The NSColorWell objects are i