Re: Strange indexOfTabViewItemWithIdentifier behavior
Re: Strange indexOfTabViewItemWithIdentifier behavior
- Subject: Re: Strange indexOfTabViewItemWithIdentifier behavior
- From: Mike Abdullah <email@hidden>
- Date: Mon, 3 Apr 2006 21:39:48 +0100
Presumably then, your privUsername variable is not realy a string then.
Mike.
On 3 Apr 2006, at 21:27PM, Yorh wrote:
Hi Joar,
Yes I add the tabviewitem with [theTab addTabViewItem:newTab];
But when I add the tab and set the identifier (that I'm sure there
is) the indexOfTabViewItemWithIdentifier returns me NSNotFound...
and this is strange....
yorh
On Apr 3, 2006, at 10:22 PM, j o a r wrote:
On 3 apr 2006, at 22.15, Yorh wrote:
When I check a nstabviewitem index the int variable retuned me is
wrong, infact I got a number like 2147483647 ....
It's not wrong, it's the value of "NSNotFound", meaning that there
were no tab in the tab view for the identifier you tried to look up.
Note that in the code snippet you showed above, you created a tab
view item, but didn't actually add it to any tab view.
j o a r
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden