Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

BGHUDTokenField - Text colour breaks after token deletion #46

Open
displaced opened this issue Feb 21, 2011 · 6 comments
Open

BGHUDTokenField - Text colour breaks after token deletion #46

displaced opened this issue Feb 21, 2011 · 6 comments

Comments

@displaced
Copy link

Hi,

I'm currently using BGHUDTokenField/BGHUDTokenFieldCell in my application. However, I'm seeing the following odd behaviour:

  • Add a BGHUDTokenField to a HUD-styled NSPanel
  • Run the application
  • Enter some tokens into the field (e.g. 'this, is, a set, of, tokens')
  • Note how the text colour is white
  • Either backspace to delete s token or two, or hit Cmd+A, Backspace to delete all.
  • Start typing some new keywords.
  • Now, strangely, the text colour is black.

Any advice on how to work around this?

Many thanks,
Chris

@timthedevguy
Copy link
Owner

Chris, sorry for the delay, long day at work today. I should get a chance to look at this tomorrow, just wanted to stop and let you know I did see the issue. Thanks!

@timthedevguy
Copy link
Owner

Update: I think I have this fixed, I'll be able to test it more in the morning and if it works I'll push it.

@timthedevguy
Copy link
Owner

So after looking at the code I realized the section I was going to modify was already modified awhile ago. I can't actually reproduce this behavior on my machine.

Do you have the most recent version from the repo?

@displaced
Copy link
Author

Hi again!

Sorry for the delay getting back to you -- it's been a while since I've been able to take another look at this!

I removed all traces of BGHUDAppKit and re-cloned from the GitHub URL. A quick rebuild and re-adding of the framework to my app and...

Unfortunately, I'm still seeing this bug, even with the latest version. Just to check that I'm using the control correctly, I deleted the existing BGHUDTokenField and did the following:

  • Added a new NSTokenField to my panel
  • Changed the class to BGHUDTokenField
  • Clicked in to the inner NSTokenFieldCell and changed its class to BGHUDTokenFieldCell

I'm using Xcode 4, if that's any help!

Thanks,
Chris

@timthedevguy
Copy link
Owner

The problem is that you are using Xcode 4, it currently is unsupported in bghudappkit, support is coming. Sorry for the confusion.

@timthedevguy timthedevguy reopened this Apr 10, 2011
@displaced
Copy link
Author

Ah, ok - no problem!

It works well enough to finish and test my app.

Thanks for your help!

Chris

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants