Re: Crashing in NSTabView

2019-05-22 Thread Casey McDermott
Turning off ARC in one file helped track down the problem.  Thanks Daniel! With breakpoints in retain and autorelease, it was possible to step through the whole tab setup process. Turns out that NSTabViewController's addChildViewController calls didSelectTabViewItem before the tab is set up pro

Re: Crashing in NSTabView

2019-05-22 Thread Daniel DeCovnick
In the Build Phases tab of the target, open compile sources and set the compiler flags for your subclass’s .m to -fno-objc-arc. Don’t forget that the signature for -release is -(oneway void)release, not just -(void)release :) Daniel > On May 22, 2019, at 12:13 PM, Carl Hoefs > wrote: > >

Re: Crashing in NSTabView

2019-05-22 Thread James Walker
On 5/22/19 11:20 AM, Casey McDermott wrote: Instruments shows the child view controller being deallocated improperly after a tab switch. Unfortunately it's either run the debugger or run Instruments, but not both. So it doesn't help narrow down to when the release happens, exactly. Instrument

Re: Crashing in NSTabView

2019-05-22 Thread Carl Hoefs
> On May 22, 2019, at 11:31 AM, Daniel DeCovnick wrote: > > You can always subclass, turn off ARC for that file, and override -release or > -autorelease to breakpoint in. How does one turn off ARC for a specific file? -Carl ___ Cocoa-dev mailing l

Re: Crashing in NSTabView

2019-05-22 Thread Casey McDermott
rs that should solve your situation. > > You may also want to check out Instrument’s zombies, which might better > pinpoint where the issue is ocurring. > > HTH, > > Keary Suska > Esoteritech, Inc. > "Demystifying technology for your home or business" >

Re: Crashing in NSTabView

2019-05-22 Thread Daniel DeCovnick
You can always subclass, turn off ARC for that file, and override -release or -autorelease to breakpoint in. I’ve done that on occasion with particularly tricky overrelease bugs (which actually turned out to be an under-autorelease bug in some non-ARC code). Daniel > On May 22, 2019, at 11:20

Re: Crashing in NSTabView

2019-05-22 Thread Casey McDermott
Instruments shows the child view controller being deallocated improperly after a tab switch. Unfortunately it's either run the debugger or run Instruments, but not both. So it doesn't help narrow down to when the release happens, exactly. Instruments has an Allocations list that shows caller and

Re: Crashing in NSTabView

2019-05-22 Thread Markus Spoettl
r business" On May 22, 2019, at 8:26 AM, Casey McDermott wrote: Our Mac app adds tabs to a NSTabView programmatically.  After switching tabs a few times, one of the NSTabViewItems would release prematurely, causing a crash.  So we switched it to using a NSTabViewController.  Tab switching

Re: Crashing in NSTabView

2019-05-22 Thread Matt Jacobson
> On May 22, 2019, at 1:19 PM, Casey McDermott wrote: > > The Allocations feature in Instruments looks promising. Is there a way to > limit the display to just one class? Otherwise it is WTMI. Check out File → Recording Options… Matt ___ Cocoa-dev

Re: Crashing in NSTabView

2019-05-22 Thread Casey McDermott
nt to check out Instrument’s zombies, which might better pinpoint where the issue is ocurring. HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" > On May 22, 2019, at 8:26 AM, Casey McDermott wrote: > > Our Mac app adds tabs to a

Re: Crashing in NSTabView

2019-05-22 Thread Keary Suska
ation. You may also want to check out Instrument’s zombies, which might better pinpoint where the issue is ocurring. HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" > On May 22, 2019, at 8:26 AM, Casey McDermott wrote: > > Our Mac app

Re: Crashing in NSTabView

2019-05-22 Thread James Walker
On 5/22/19 7:26 AM, Casey McDermott wrote: Our Mac app adds tabs to a NSTabView programmatically.  After switching tabs a  few times, one of the NSTabViewItems would release prematurely, causing a crash.  So we switched it to using a  NSTabViewController.  Tab switching still crashes, but now it

Crashing in NSTabView

2019-05-22 Thread Casey McDermott
Our Mac app adds tabs to a NSTabView programmatically.  After switching tabs a  few times, one of the NSTabViewItems would release prematurely, causing a crash.  So we switched it to using a  NSTabViewController.  Tab switching still crashes, but now it releases a NSViewController prematurely

Using NSTabView without a NSTabViewController; with storyboards, OS X

2016-06-12 Thread Daryle Walker
I put in a table-view for the top half of a OS X storyboard, and a tab-view for the bottom. I couldn't figure out how to modify the tabs with more controls. Eventually I followed web tutorial and replaced the tab-view with a custom view that's attached to a tab-view controller, which itself has

Re: -[NSTabView mouseDown:] blows stack in Yosemite SDK

2014-09-29 Thread Jerry Krinock
> On 2014 Sep 28, at 22:06, Kyle Sluder wrote: > > Do you have a cycle in your nextResponder chain? Remember than > NSViewController now inserts itself into the responder chain on 10.10. YES! That explains all of the forwardMethod() madness. My subclass of NSViewController, which I use for

Re: -[NSTabView mouseDown:] blows stack in Yosemite SDK

2014-09-28 Thread Kyle Sluder
On Sep 28, 2014, at 9:48 PM, Jerry Krinock wrote: > > … > #1309580x7fff96f9ad70 in forwardMethod () > #1309590x7fff96f9ad70 in forwardMethod () > #1309600x7fff974074ea in -[NSTabView mouseDown:] () Do you have a cycle in your nextResponder chain

-[NSTabView mouseDown:] blows stack in Yosemite SDK

2014-09-28 Thread Jerry Krinock
0x7fff96f9ad70 in forwardMethod () #130959 0x7fff96f9ad70 in forwardMethod () #130960 0x7fff974074ea in -[NSTabView mouseDown:] () #130961 0x7fff96f9ad70 in forwardMethod () #130962 0x7fff96f9ad70 in forwardMethod () #130963 0x7fff96f9ad70 in forwardMethod () #130964

Re: nextKeyView order is ignored after loading into NSTabView

2013-12-04 Thread Steve Mills
hat the last view in the loop has its nextKeyView set to the > tab view itself. This normally has no visible effect, since the tab view > returns NO from -acceptsFirstResponder and returns the correct value > from -nextKeyView such that -nextValidKeyView remains a loop. > > I presum

Re: nextKeyView order is ignored after loading into NSTabView

2013-12-03 Thread Kyle Sluder
cept* that the last view in the loop has its nextKeyView set to the tab view itself. This normally has no visible effect, since the tab view returns NO from -acceptsFirstResponder and returns the correct value from -nextKeyView such that -nextValidKeyView remains a loop. I presume NSTabView insists o

Re: nextKeyView order is ignored after loading into NSTabView

2013-12-03 Thread Steve Mills
On Dec 3, 2013, at 16:08:23, Steve Mills wrote: > We have a window that has a tab view that contains 2 tabs. The 2 tabs contain > empty views. The actual views are in their own specific xibs and get loaded > manually, then we replace the temp views in the tabs with the actual views > via: > >

nextKeyView order is ignored after loading into NSTabView

2013-12-03 Thread Steve Mills
We have a window that has a tab view that contains 2 tabs. The 2 tabs contain empty views. The actual views are in their own specific xibs and get loaded manually, then we replace the temp views in the tabs with the actual views via: tab.view = realView; At that point, the key loop is being rec

Re: NIBs combining NSTabView and NSDrawer

2013-11-07 Thread Quincey Morris
On Nov 7, 2013, at 08:46 , Joseph Ayers wrote: > I have a NSWindow that has a NSTabView. The window has some drawers that open > when one of the tabs is clicked on. One of the tabs draws a digital > oscilloscope, another draws graphs and a third some DSP graphics The drawers

Re: NIBs combining NSTabView and NSDrawer

2013-11-07 Thread Graham Cox
On 7 Nov 2013, at 5:46 pm, Joseph Ayers wrote: > I’m working on a program that does digital signal processing on the audio > tracks of a Quicktime Movie. > > I have a NSWindow that has a NSTabView. The window has some drawers that open > when one of the tabs is clicked on.

NIBs combining NSTabView and NSDrawer

2013-11-07 Thread Joseph Ayers
I’m working on a program that does digital signal processing on the audio tracks of a Quicktime Movie. I have a NSWindow that has a NSTabView. The window has some drawers that open when one of the tabs is clicked on. One of the tabs draws a digital oscilloscope, another draws graphs and a

Re: NSTabView

2013-09-16 Thread Joseph Ayers
indow *analysis; // the visualization window @property(nonatomic, strong) IBOutlet NSTabView*myTabView; // the host view @property(nonatomic, strong) IBOutlet NSTabViewItem*scopeItem; // the host view @property(nona

Re: NSTabView

2013-09-12 Thread Graham Cox
On 12/09/2013, at 3:22 PM, Joseph Ayers wrote: > When you click on a tab in a NSTabView, what action gets sent to what target? > Where can I find this information? I don't think actions or targets are involved. The NSTabViewItem clickable button row appears to be privately

Re: NSTabView

2013-09-12 Thread Graham Cox
On 12/09/2013, at 5:25 PM, Joseph Ayers wrote: > -(void) awakeFromNib > { > [self setDelegate:self]; > > } > More obvious problem, should this be [myTabView setDelegate:self]; ? --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: NSTabView

2013-09-12 Thread Graham Cox
On 12/09/2013, at 5:35 PM, Graham Cox wrote: > The NSTabViewItem is NOT the same object as the view it hosts, so your > conditionals will always return false. [NSTabViewItem view] is the object > you're looking for. > > That said, the rest of your code (which is rather difficult to read) does

Re: NSTabView

2013-09-12 Thread Joseph Ayers
That got the delegate proc working. Onward and thanks, Joseph On Sep 12, 2013, at 11:54 AM, Graham Cox wrote: > > On 12/09/2013, at 5:25 PM, Joseph Ayers wrote: > >> -(void) awakeFromNib >> { >> [self setDelegate:self]; >> >> } >> > > > More obvious problem, should this be [myTabVie

Re: NSTabView

2013-09-12 Thread Graham Cox
On 12/09/2013, at 5:25 PM, Joseph Ayers wrote: > I created a delegate procedure in the window controller > > - (void)tabView:(NSTabView *)tabView didSelectTabViewItem:(NSTabViewItem > *)tabViewItem > { > AppDelegate *appDelegate = [NSApp delegate]; > if (tabView

Re: NSTabView

2013-09-12 Thread Jerry Krinock
On 2013 Sep 12, at 06:22, Joseph Ayers wrote: > When you click on a tab in a NSTabView, what action gets sent to what target? > Where can I find this information? If I recall correctly, and, presuming that you looked for some time before posting your question, I think that it's al

Re: NSTabView

2013-09-12 Thread Mike Abdullah
On 12 Sep 2013, at 14:22, Joseph Ayers wrote: > When you click on a tab in a NSTabView, what action gets sent to what target? > Where can I find this information? NSTabView is not a subclass of NSControl so it has no target or action. Instead, its delegate is informed of changes

NSTabView

2013-09-12 Thread Joseph Ayers
When you click on a tab in a NSTabView, what action gets sent to what target? Where can I find this information? Thanks, Joseph Joseph Ayers, Professor Departments of Marine and Environmental Science Biology, Civil and Environmental Engineering and Marine Science Center Northeastern University

Re: NSScrollView in NSTabView autolayout problem

2013-04-26 Thread Krzysztof Wicher
wrote: I ran into a very similar problem. Recently, I put my view hierarchy into an NSTabView. When it's in the inactive tab, I get lots of "Unable to simultaneously satisfy constraints" errors. When the view hierarchy is in the active tab, there are no errors. I use auto layou

Re: NSScrollView in NSTabView autolayout problem

2013-04-25 Thread Chuck Soper
I ran into a very similar problem. Recently, I put my view hierarchy into an NSTabView. When it's in the inactive tab, I get lots of "Unable to simultaneously satisfy constraints" errors. When the view hierarchy is in the active tab, there are no errors. I use auto layout in m

Re: NSScrollView in NSTabView autolayout problem

2013-04-22 Thread kwic...@wichry.net
was sent to the list on Saturday, but I >> didn't receive it until this morning. >> >> >> On 4/13/13 1:57 PM, "kwic...@wichry.net" wrote: >> >>> Hi >>> I have an NSTabView with multiple tabs, each containing an NSScrollView. >

Re: NSScrollView in NSTabView autolayout problem

2013-04-19 Thread Krzysztof Wicher
ew. I think that NSScrollView doesn't support it, but it appears that many people have gotten it to work. Chuck P.S. It looks like your message was sent to the list on Saturday, but I didn't receive it until this morning. On 4/13/13 1:57 PM, "kwic...@wichry.net" wrote: Hi

Re: NSScrollView in NSTabView autolayout problem

2013-04-18 Thread Chuck Soper
looks like your message was sent to the list on Saturday, but I didn't receive it until this morning. On 4/13/13 1:57 PM, "kwic...@wichry.net" wrote: >Hi >I have an NSTabView with multiple tabs, each containing an NSScrollView. >In the scrollviews I dynamically place

NSScrollView in NSTabView autolayout problem

2013-04-17 Thread kwic...@wichry.net
Hi I have an NSTabView with multiple tabs, each containing an NSScrollView. In the scrollviews I dynamically place custom views which are sized using autolayout and constraints. Now if I add my custom views to a scrollview in tab1 and resize the window with this tab active everything works

Re: NSTabView Sizing Question

2011-08-26 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/26/11 11:08 AM, Jens Alfke wrote: > What I would do is, once you know the content view size you want, > compute the difference between that size and the content’s current > size, then grow the window by that amount. > > The assumption is that th

Re: NSTabView Sizing Question

2011-08-26 Thread Jens Alfke
On Aug 26, 2011, at 10:43 AM, Conrad Shultz wrote: > I have an NSTabView in a window and want to size it (and, > subsequently, the window) to fully display the current tab view item's > content view (i.e. [tabViewItem view]). What I would do is, once you know the content view

NSTabView Sizing Question

2011-08-26 Thread Conrad Shultz
ive newcomer to AppKit this is not at all improbable. I have an NSTabView in a window and want to size it (and, subsequently, the window) to fully display the current tab view item's content view (i.e. [tabViewItem view]). What I am currently doing, more or less, is: 1) Calculate the prope

WebView w/ Java Plugin in NSTabView

2010-12-02 Thread Chris Backas
Hello all, I have an application which needs to run multiple instances of WebView, each will be running a Java applet embedded in the page that it loads. For the sake of a sane UI, each WebView is contained in its own tab item in an NSTabView. This is mostly working, but I'm havin

Re: Resizable NSTabView

2010-11-04 Thread Jerry Krinock
On 2010 Nov 04, at 08:31, Keary Suska wrote: > You have to do all the resizing yourself via code, and watch out for > overlapping view gotchas. Indeed. For example, if the size is increasing, you'll want to resize first, then draw. But if the size is decreasing, you'll want to draw first, th

Re: Resizable NSTabView

2010-11-04 Thread Keary Suska
On Nov 4, 2010, at 7:54 AM, Richard Somers wrote: > Apple's documentation indicates that a NSToolbar with selectable items can be > used for navigation in a preference panel. This is often used in conjunction > with an NSTabView that is configured to have no visible t

Re: Resizable NSTabView

2010-11-04 Thread Kyle Sluder
On Thu, Nov 4, 2010 at 6:54 AM, Richard Somers wrote: > Apple's documentation indicates that a NSToolbar with selectable items can > be used for navigation in a preference panel. This is often used in > conjunction with an NSTabView that is configured to have no visible

Resizable NSTabView

2010-11-04 Thread Richard Somers
Apple's documentation indicates that a NSToolbar with selectable items can be used for navigation in a preference panel. This is often used in conjunction with an NSTabView that is configured to have no visible tabs. http://developer.apple.com/library/mac/#documentation/Cocoa/Conce

Re: WebView in NSTabView

2010-10-27 Thread Mike Abdullah
w has some APIs for controlling host window, and how to behave when not in a window. Play with that On 26 Oct 2010, at 09:33, Ivan C Myrvold wrote: > My application has an NSTabView with three tabs. The second tab, EPG, has an > ordinary NSTableView: > http://www.myrvold.org/cocoa/m

WebView in NSTabView

2010-10-26 Thread Ivan C Myrvold
My application has an NSTabView with three tabs. The second tab, EPG, has an ordinary NSTableView: http://www.myrvold.org/cocoa/myrdream/images/epgbefore.jpg The third tab, WebTV, has a WebView, which fetches content from a local Linux satellite box: http://www.myrvold.org/cocoa/myrdream

Re: Drawing a custom NSTabView Border

2010-09-18 Thread Mr. Gecko
If I received it, yes. I only get the digests and I hardly ever read them, so they have to reply to all for me to receive them, sorry about that. Doing from bounds appears to fix it. I actually never knew about the draw rect doing only a section of the view. I just always thought it drew the who

Re: Drawing a custom NSTabView Border

2010-09-18 Thread Quincey Morris
On Sep 18, 2010, at 09:40, Mr. Gecko wrote: > I was right about these lists not being useful anymore. None has done a > custom Tab View border? Really? a. cute b. trolling c. this was answered yesterday (your code is wrong) ___ Cocoa-dev mailing l

Re: Drawing a custom NSTabView Border

2010-09-18 Thread Kyle Sluder
ecko wrote: > >> Hello I'm wondering what will be the best way to draw a custom NSTabView >> Border. I have tried many things and it always ends up that I fail. The >> border gets drawn, but the objects in the Tab View, if you focus them, has a >> black edge around

Re: Drawing a custom NSTabView Border

2010-09-18 Thread Mr. Gecko
I was right about these lists not being useful anymore. None has done a custom Tab View border? Really? On Sep 17, 2010, at 5:29 PM, Mr. Gecko wrote: > Hello I'm wondering what will be the best way to draw a custom NSTabView > Border. I have tried many things and it always ends up

Re: Drawing a custom NSTabView Border

2010-09-17 Thread Seth Willits
On Sep 17, 2010, at 3:29 PM, Mr.Gecko wrote: > Hello I'm wondering what will be the best way to draw a custom NSTabView > Border. I have tried many things and it always ends up that I fail. The > border gets drawn, but the objects in the Tab View, if you focus them, has a >

Drawing a custom NSTabView Border

2010-09-17 Thread Mr . Gecko
Hello I'm wondering what will be the best way to draw a custom NSTabView Border. I have tried many things and it always ends up that I fail. The border gets drawn, but the objects in the Tab View, if you focus them, has a black edge around them, that is not elegant at all. Is there any exa

Arrow keys not working in NSTabView

2010-03-03 Thread David Alter
I have dynamically created a NSTabView and added NSTabViewItems to it. It works with the exception of if the NSTabView has the focus I can not use the right and left arrow keys to navigate to the other tabs. The arrow keys work if I create the tab view with IB. I'm not sure what is differe

Re: NSTabView

2010-01-26 Thread Kyle Sluder
On Tue, Jan 26, 2010 at 11:42 AM, David Blanton wrote: > I want to see all the tab items ... are there multiple rows? No. The HIG answers your questions: http://developer.apple.com/Mac/library/documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGControls/XHIGControls.html#//apple_ref/do

Re: NSTabView

2010-01-26 Thread David Blanton
have a fixed size NSTabView that displays 4 NSTabViewITems very nicely. It is possible that the application may want to add more NSTabViewItems. Is there a flag to set (somewhere) so that added items will not be truncated to the view but display >> like Safari indicating more ite

Re: NSTabView

2010-01-25 Thread Scott Anguish
On Jan 25, 2010, at 10:34 PM, David Blanton wrote: > I have a fixed size NSTabView that displays 4 NSTabViewITems very nicely. > > It is possible that the application may want to add more NSTabViewItems. > > Is there a flag to set (somewhere) so that added items will not be trun

NSTabView

2010-01-25 Thread David Blanton
I have a fixed size NSTabView that displays 4 NSTabViewITems very nicely. It is possible that the application may want to add more NSTabViewItems. Is there a flag to set (somewhere) so that added items will not be truncated to the view but display >> like Safari indicating more items

Re: NSTabView Bindings

2009-12-22 Thread Quincey Morris
able). > > But I am told: > [ valueForUndefinedKey:]: this class is not key value > coding-compliant for the key selectedIndex. > > On the other hand, the Cocoa Bindings Reference for NSTabView says: > "selectedIndex > An integer value that specifies the index of the

NSTabView Bindings

2009-12-21 Thread Gerriet M. Denkmann
ue coding-compliant for the key selectedIndex. On the other hand, the Cocoa Bindings Reference for NSTabView says: "selectedIndex An integer value that specifies the index of the selected item in the NSTabView. When the selection changes in the NSTabView, this value is updated with the ind

Re: NSTabView Tutorial

2009-07-31 Thread Boyd Collier
ve, I'd be happy to send it to you. Boyd On Jul 31, 2009, at 12:20 PM, Thomas Wetmore wrote: I'm looking for a simple NSTabView tutorial. I've found references to the MultipleNIBTabView tutorial but I can't find it in the current Xcode Examples area or at the Developer s

Re: NSTabView Tutorial

2009-07-31 Thread Andy Lee
looked them since you didn't mention them. I think it was an excellent idea for Apple to add these links in the docs. --Andy On Friday, July 31, 2009, at 03:20PM, "Thomas Wetmore" wrote: >I'm looking for a simple NSTabView tutorial. I've found references to >th

NSTabView Tutorial

2009-07-31 Thread Thomas Wetmore
I'm looking for a simple NSTabView tutorial. I've found references to the MultipleNIBTabView tutorial but I can't find it in the current Xcode Examples area or at the Developer site. Anyone know where it is located, or whether there is another tutorial around? Thank

Re: selecting tab in a tabless NSTabView in IB

2009-06-08 Thread Stephen Blinkhorn
On 7 Jun 2009, at 22:13, Rob Keniger wrote: On 06/06/2009, at 6:08 AM, Stephen Blinkhorn wrote: Does anyone know if it is possible to change the current tab in a tabless NSTabView from within Interface Builder without having to go into the inspector and change tabless style to top tabs

Re: selecting tab in a tabless NSTabView in IB

2009-06-07 Thread Jonathan Hess
On Jun 7, 2009, at 9:13 PM, Rob Keniger wrote: On 06/06/2009, at 6:08 AM, Stephen Blinkhorn wrote: Does anyone know if it is possible to change the current tab in a tabless NSTabView from within Interface Builder without having to go into the inspector and change tabless style to top

Re: selecting tab in a tabless NSTabView in IB

2009-06-07 Thread Rob Keniger
On 06/06/2009, at 6:08 AM, Stephen Blinkhorn wrote: Does anyone know if it is possible to change the current tab in a tabless NSTabView from within Interface Builder without having to go into the inspector and change tabless style to top tabs, right tabs etc. I use a lot of small tabless

selecting tab in a tabless NSTabView in IB

2009-06-07 Thread Stephen Blinkhorn
Hello Cocoa Dev, Does anyone know if it is possible to change the current tab in a tabless NSTabView from within Interface Builder without having to go into the inspector and change tabless style to top tabs, right tabs etc. I use a lot of small tabless NSTabView objects and I finally got

Re: NSTabView; How to get the current / active tab ..?

2009-06-07 Thread Scott Andrew
); break; } Scott On Jun 7, 2009, at 11:14 AM, Martin Batholdy wrote: hi, I have an IBOutlet defined in my header; IBOutlet NSTabView *tabView; This Outlet is connected with a TabView generated with Interface Builder. The TabView has two tabs, and in my implementation

Re: NSTabView; How to get the current / active tab ..?

2009-06-07 Thread Andy Lee
]) { case GENERAL_TAB: NSLog(@"1"); break; case FONT_TAB NSLog(@"2"); break; } Scott On Jun 7, 2009, at 11:14 AM, Martin Batholdy wrote: hi, I have an IBOutlet defined in my header; IBOutlet NSTabV

Re: NSTabView; How to get the current / active tab ..?

2009-06-07 Thread Scott Andrew
]) { case GENERAL_TAB: NSLog(@"1"); break; case FONT_TAB NSLog(@"2"); break; } Scott On Jun 7, 2009, at 11:14 AM, Martin Batholdy wrote: hi, I have an IBOutlet defined in my header; IBOutlet NSTabV

Re: NSTabView; How to get the current / active tab ..?

2009-06-07 Thread Greg Guerin
Martin Batholdy wrote: if([tabViewItemX isEqualTo:[tabView tabViewItemAtIndex:0]]){ Don't use isEqualTo: in this situation. Read the docs for isEqualTo:, and compare with the docs for isEqual:. Use isEqual:, which I suspect will work, or just use == since you're probably interes

NSTabView; How to get the current / active tab ..?

2009-06-07 Thread Martin Batholdy
hi, I have an IBOutlet defined in my header; IBOutlet NSTabView *tabView; This Outlet is connected with a TabView generated with Interface Builder. The TabView has two tabs, and in my implementation file I want to do something when tab1 is active and something else when tab2 is active

Re: Multiple NSTabViewItems that can't fit in a Single NSTabView

2009-01-28 Thread Raleigh Ledet
fit in a Single NSTabView. In windows, if tabview items doesn't fit in a tab then they are displayed by dividing them in 2 lines. Is there anything like this on Mac platform so that I can display around 10 TabViewItems in a single NSTabView? Thank

Multiple NSTabViewItems that can't fit in a Single NSTabView

2009-01-28 Thread Rahulkumar
I want to display Multiple NSTabViewItems that can't fit in a Single NSTabView. In windows, if tabview items doesn't fit in a tab then they are displayed by dividing them in 2 lines. Is there anything like this on Mac platform so that I can display around 10 TabViewItems in a single

Re: -[NSView window] returns nil if its NSTabView not selected

2009-01-08 Thread Jerry Krinock
, which, for a view in an NSTabView, means whenever the tab is selected or deselected. So, I need to review all of my -awakeFromNibs and consider all of this. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: -[NSView window] returns nil if its NSTabView not selected

2009-01-07 Thread Quincey Morris
On Jan 7, 2009, at 19:36, Jerry Krinock wrote: In a view's -awakeFromNib, I often do some initializations which require the view's -window [1]. This worked fine until I put one of these views inside an NSTabView. Now, it fails if the tab containing the view is not selected wh

Re: -[NSView window] returns nil if its NSTabView not selected

2009-01-07 Thread Jim Correia
On Jan 7, 2009, at 10:36 PM, Jerry Krinock wrote: In a view's -awakeFromNib, I often do some initializations which require the view's -window [1]. This worked fine until I put one of these views inside an NSTabView. Now, it fails if the tab containing the view is not selecte

-[NSView window] returns nil if its NSTabView not selected

2009-01-07 Thread Jerry Krinock
In a view's -awakeFromNib, I often do some initializations which require the view's -window [1]. This worked fine until I put one of these views inside an NSTabView. Now, it fails if the tab containing the view is not selected when the nib is loaded, because in this case -[NSV

Re: Strange issue with NSTabView

2008-12-02 Thread Ian was here
instead. Maybe this will make a difference. --- On Tue, 12/2/08, Volker in Lists <[EMAIL PROTECTED]> wrote: > From: Volker in Lists <[EMAIL PROTECTED]> > Subject: Re: Strange issue with NSTabView > To: [EMAIL PROTECTED] > Date: Tuesday, December 2, 2008, 10:22 AM >

Strange issue with NSTabView

2008-12-02 Thread Ian was here
I created a tab-less NSTabView with seven tabs. Each tab is selected programatically using selectTabViewItemWithIdentifier: (for testing purposes I have also used selectTabViewItemAtIndex: and selectedTabViewItem:). At first I noticed that the tabs weren't changing. It was stuck on the de

Re: NSTabView in my preference pane doesn't fill the view

2008-12-02 Thread Raleigh Ledet
On Dec 1, 2008, at 11:41 AM, Eric Czarny wrote: Hello! I submitted this question to the CocoaDev forums, but didn't really get a good response: I am having a rather frustrating problem with an NSTabView in my preference pane. Basically, I have a simple NSWindow that contains an NSTabView.

NSTabView in my preference pane doesn't fill the view

2008-12-02 Thread Eric Czarny
Hello! I submitted this question to the CocoaDev forums, but didn't really get a good response: I am having a rather frustrating problem with an NSTabView in my preference pane. Basically, I have a simple NSWindow that contains an NSTabView. This NSTabView contains 4 empty tabs. I manag

Re: Connecting NSToolbar and NSTabView

2008-08-29 Thread Quincey Morris
match. Do I just call the toolbar 'prefstoolbar' in "Interface Builder Identity", in order to access it? I don't quite understand how I can address the NSToolbar instance from the NSTabview. Also, doesn't a delegate to the NSToolbar have to provide toolbarSel

Re: Connecting NSToolbar and NSTabView

2008-08-29 Thread David Reitter
On 29 Aug 2008, at 15:52, Quincey Morris wrote: On Aug 29, 2008, at 12:49, Quincey Morris wrote: On Aug 29, 2008, at 08:20, David Reitter wrote: To create a preference window with a NSToolbar at the top and a tabless NSTabView containing a few panels. How would I go about connecting the

Re: Connecting NSToolbar and NSTabView

2008-08-29 Thread Quincey Morris
On Aug 29, 2008, at 12:49, Quincey Morris wrote: On Aug 29, 2008, at 08:20, David Reitter wrote: To create a preference window with a NSToolbar at the top and a tabless NSTabView containing a few panels. How would I go about connecting the two in Interface Builder? I can set the NSToolbar

Re: Connecting NSToolbar and NSTabView

2008-08-29 Thread Quincey Morris
On Aug 29, 2008, at 08:20, David Reitter wrote: To create a preference window with a NSToolbar at the top and a tabless NSTabView containing a few panels. How would I go about connecting the two in Interface Builder? I can set the NSToolbar selector to invoke

Connecting NSToolbar and NSTabView

2008-08-29 Thread David Reitter
To create a preference window with a NSToolbar at the top and a tabless NSTabView containing a few panels. How would I go about connecting the two in Interface Builder? I can set the NSToolbar selector to invoke takeSelectedTabViewItemFromSender on the NSTabView, which seems promising

Re: show/hide NSTabView

2008-05-14 Thread Torsten Curdt
Hey David, Thanks for the suggestion. But it's the window height. And that does indeed change properly. It's just the controls (the NSTabView) that misbehaves. Please see my other mail. cheers -- Torsten ___ Cocoa-dev mailing list

Re: show/hide NSTabView

2008-05-14 Thread David Dumaresq
on a NSTabView. - (void) showDetails:(BOOL)show animate:(BOOL)animate { NSSize fullSize = NSMakeSize(455, 302); NSRect windowFrame = [[self window] frame]; if (show) { [tabView setFrameSize:fullSize]; [tabView setNeedsDispla

Re: show/hide NSTabView

2008-05-14 Thread Torsten Curdt
x27;t get the autosize behavior!! Check out this little screencast http://vafer.org/pub/autosize.mov The first part is as expected. But once the height of the NSTabView has been zero - it's getting ugly. Seems like I am not alone on this http://katidev.com/blog/2008/02/12/why-i

show/hide NSTabView

2008-05-14 Thread Torsten Curdt
While the code below seemed to have worked OK for showing/hiding a NSTextView I am now not really sure what's going on when using it on a NSTabView. - (void) showDetails:(BOOL)show animate:(BOOL)animate { NSSize fullSize = NSMakeSize(455, 302); NSRect window

Re: Icons on the NSTabview

2008-04-30 Thread Jens Alfke
back back in Jaguar/10.2, when tabs didn't look like buttons.) You can actually use an NSSegmentedControl instead of multiple buttons, and it'll look pretty much identical to an NSTabView. Speaking of tabs not looking like buttons, I still miss the old appearance. Anyone know i

Re: Icons on the NSTabview

2008-04-30 Thread Development
Funny you should mention this. I JUST had to contend with this myself. I did it a little different, more parts but easier to deal with I think, than trying to recalculate labels and all. Create a nsview to act a a wrapper. Place a Tabless tabview inside this Also place another nsview where ev

Re: Icons on the NSTabview

2008-04-30 Thread Jens Alfke
On 30 Apr '08, at 7:54 AM, yogesh kumar wrote: If is it possible to add the icons pictures on the NSTabviews? Any direction is appriciated. Thanks. There's no built-in support for icons. You'd have to subclass NSTabViewItem and then override a few methods: - (void)drawLabel:(BOOL)shouldT

Icons on the NSTabview

2008-04-30 Thread yogesh kumar
If is it possible to add the icons pictures on the NSTabviews? Any direction is appriciated. Thanks. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at co

Changing tab in NSTabView with wantsLayer and Garbage collection problem.

2008-03-07 Thread Mathieu Coursolle
Hi Cocoa dev, I would like to use core animation in an application, so I am investigation on how to use the wantsLayer property of an NSView, but I got confused with some behavior so far... I created a simple window, in which there is a tab view. In the first tab, I added a custom view, a

Re: Tabless NSTabView IB3 Bug

2008-03-04 Thread Justin Williams
On 3/4/08, Seth Willits <[EMAIL PROTECTED]> wrote: > > On Mar 4, 2008, at 8:56 AM, Ben Einstein wrote: > > I'd like to see it work like switching between segments in a segmented > control. There's a popup in the inspector that lets you pick one. This is how I think it should work as well. I've f

Re: Tabless NSTabView IB3 Bug

2008-03-04 Thread Seth Willits
On Mar 4, 2008, at 8:56 AM, Ben Einstein wrote: Thanks all. These work okay, I'm just surprised the old functionality is gone. It seemed much more intuitive to just click on the "tab" than browsing the view hierarchy. I couldn't agree more. The keyboard shortcut was buried. I didn't know

  1   2   >