• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AW: NSColorWell shows no color
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: NSColorWell shows no color


  • Subject: AW: NSColorWell shows no color
  • From: tobias assmann <email@hidden>
  • Date: Tue, 30 Dec 2008 19:22:04 +0000 (GMT)

Hello,

I have built the stuff in IB. And looking into the nib file again, I have seen the should really show blue. But they are white, no matter if I set a color or not. Unfortunately there is no more code related with the wells except having actions handling if a color gets choosen:

//  InActiveBeatColor has been selected
- (IBAction)iaSelectInactiveBeatColor:(id)sender{
    [topv.colors setColor:[sender color] forKey:@"inactiveBeat"];
}

I am working on a cocoa gui of a audio unit. Because of this I don`t know how to do further debugging. It is my first experience in cocoa and osx programming :-( Is there a way to have a closer look at the code produced by IB?? Maybe something is happening there.

TIA!!!

Tobias




________________________________
Von: Graham Cox <email@hidden>
An: tobias assmann <email@hidden>
CC: email@hidden
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 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 colors should be drawn after they are set? Would make sense I my opinion.


Yes, they should immediately show the set colour with no further work on your part.

Clearly something else is wrong. Did you set up the interface in code or in IB? Usually when colour wells are created in IB they default to blue. If yours are white then it looks as if something is setting them, and white is suspicious because it's all 1's.

You need to post more code or go through it closely in the debugger.

--Graham



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: AW: NSColorWell shows no color
      • From: Andy Lee <email@hidden>
    • Re: AW: NSColorWell shows no color
      • From: Graham Cox <email@hidden>
    • Re: AW: NSColorWell shows no color
      • From: Benjamin Dobson <email@hidden>
References: 
 >NSColorWell shows no color (From: tobias assmann <email@hidden>)
 >Re: NSColorWell shows no color (From: Quincey Morris <email@hidden>)
 >RE: RE: NSColorWell shows no color (From: tobias assmann <email@hidden>)
 >Re: NSColorWell shows no color (From: Graham Cox <email@hidden>)
 >RE: NSColorWell shows no color (From: tobias assmann <email@hidden>)
 >Re: NSColorWell shows no color (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Help using NSAppleScript
  • Next by Date: Re: -[CKConnection connect]
  • Previous by thread: Re: NSColorWell shows no color
  • Next by thread: Re: AW: NSColorWell shows no color
  • Index(es):
    • Date
    • Thread