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? Remember than NSViewCont

Re: NSTabView

2013-09-16 Thread Joseph Ayers
I'm writing a signal processing program and I am trying to use a window to display multiple NSViews of an oscilloscope, histograms, etc. I create the NSTabViewItems programmatically. The window controller declares the following properties: @property(nonatomic, strong) IBOutlet NSWindow

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 managed and operate

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 (tabViewItem == [[appDelegate gr

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 all under the h

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 in tab.

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 size you want, comp

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
Ok, so there is no flag to set. So how would one deal with the situation I described? I want to see all the tab items ... are there multiple rows? Any help or suggestions, please. -db On Jan 25, 2010, at 11:46 PM, Scott Anguish wrote: On Jan 25, 2010, at 10:34 PM, David Blanton wrote: I

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 truncated > to the

Re: NSTabView Bindings

2009-12-22 Thread Quincey Morris
On Dec 21, 2009, at 22:02, Gerriet M. Denkmann wrote: > > I am trying to bind "editable" of an NSTableColumn to ObjectController > tabView.selectedIndex > (The tab view has two items: Read and Edit. When the first item is selected, > my table column should not be editable). > > But I am told:

Re: NSTabView Tutorial

2009-07-31 Thread Boyd Collier
A couple of years ago, I made a copy of MultipleNibTabView to play around with in learning how to use tab views. I still have this (slightly modified) copy but couldn't find the original version from Apple on my computer. However, if you'd like a copy of the version that I have, I'd be ha

Re: NSTabView Tutorial

2009-07-31 Thread Andy Lee
How about the examples linked to in the documentation? (See "Related sample code".) I don't know anything about them, but thought you might have overlooked them since you d

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

2009-06-07 Thread Scott Andrew
Duh.. So a bit of correction to my code. #define GENERAL_TAB 100 #define FONT_TAB 101 NSTabViewItem* item = [tabView selectedTabViewItem]; switch ([[item identifier] intValue]) { case GENERAL_TAB: NSLog(@"Tab 1"); break; case FONT

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

2009-06-07 Thread Andy Lee
Well, [tabViewItem identifier] returns an id, not an int, but the general idea is probably a good one -- decide your action based on the identifier rather than the position of the tab, in case you decide to rearrange the tabs later. --Andy On Jun 7, 2009, at 9:36 PM, Scott Andrew wrote:

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

2009-06-07 Thread Scott Andrew
Why not use unique identifiers for each tab item? Each NSTabViewItem has an identifier value. Using that and some defines you can use do the following: #define GENERAL_TAB 1 #define FONT_TAB 2 NSTabViewItem* tabViewItem = [tabView selectedTabViewItem]; switch([tabViewItem identifier]) {

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

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

2008-12-02 Thread Raleigh Ledet
Eric, The pref pane window adjusts vertically, but has a static width. The contents of your window are always centered horizontally in the system preference pane window. (ie springs are not expected to work) The width of the system preference pane changed between Tiger and Leopard. It loo