multiple TabView identities

Hi All,

i have two tabViews both connected with the delegate method for getting the selected tab.

on tabView_didSelectTabViewItem_(myTabView, myTabViewItem)
--I need to differentiate which tab view is being tabbed
--This returns  <NSTabView: 0x200b60a80> or <NSTabView: 0x2007d0140> (for other tab)
	log myTabView 
	set thisTab to my myTabView's selectedTabViewItem()'s |identifier|() as string
		set {origin:{x:xp, y:yp}, |size|:{height:h, |width|:w}} to mainWindow's frame()
		if (h as integer) < 547 then
			if (destTabView's selectedTabViewItem()'s |identifier|() as string) = "1" then
				mainWindow's setFrame_display_animate_({{xp, ((yp + h) - 547)}, {645, 600}}, 1, 1)
			else if (destTabView's selectedTabViewItem()'s |identifier|() as string) = "3" then
				mainWindow's setFrame_display_animate_({{xp, ((yp + h) - 547)}, {645, 630}}, 1, 1)
			end if
		end if
end tabView_didSelectTabViewItem_

How do I translate <NSTabView: 0x2007d0140>? You can’t set it to a string or number of any kind.

Thanks, Rob

If you have outlets to your two tabviews then you just use:

if myTabView is tabView1 then … (assuming tabView1 is your outlet)

If you don’t have outlets, then you need to have two different delegates, one for each tabView.

Ric