Re: NSTokenField come over a NSTableView
Re: NSTokenField come over a NSTableView
- Subject: Re: NSTokenField come over a NSTableView
- From: mabo68 <email@hidden>
- Date: Sun, 1 Apr 2007 15:36:56 +0200
Hi Andreas
Tanks !
I have to give you more details. I have created a class, herited from
NSTokenField. When I write some text in my token field, a NSTableView
will be opened automaticaly and will display a lot of rows in
relation with what the user has entered in the tokenfield. This is
similar to what Apple does with "Mail". But I don't want to reproduce
the same effect as Apple.
Imagine to have 2 tokenfield on the window. The token field (A) on
top of my window and a second (B) in bottom of my window. The
distance between both token field A and B is 2 cm. Ok. I write
somthing in the tokenfield B (the token in tokenfield B is surrounded
of a blue bezeled line).
I write some text in the first tokenfild A, it will open the
tableview with a content. This tableview, opened from A, will be
opened over the tokenfield B. I see B no more. That's ok. I can
select with the arrow keys what I want in the rows opened from A. No
problem.
But ! When I go with the mouse over my opened tableview, the
tokenfield B will automaticly come over the tableview, only when I
move my mouse over the blue bezeled text from tokenfield B !
The event mouseEntered will react.
I can not solve the problem with a NSTabView. You understand why.... :-)
Thanks for your help !
Marc Borer
Le 30 mars 07 à 17:39, glenn andreas a écrit :
On Mar 30, 2007, at 9:02 AM, mabo68 wrote:
Over this tokenField come an programaticly created NSTableView (in
a NSScrollView).
I fill my tableview with some data. OK.
The data are corectly displayed.
Wenn I go with the mouse on the tableView, without clicking
something, the tokenField
will come on the first layer and hide a part of my tableView !
It sounds like you just created two overlapping views (with the
NSTableView on top of the token field).
Don't do that, you'll have nothing but problems.
Search the list archives for the full gory discussion about
overlapping views, but in general, just don't do that.
What are you trying to accomplish that you've got a table view on
top of token view?
If you're trying to alternate between showing one and the other, a
better approach would be to embed them both in a tab view (without
the tabs shown) and then switch the tab view to show the
appropriate one.
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve, animate | images, textures,
fractals, art
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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