Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 6, 2013, 12:47 PM   #1
cpuin
macrumors member
 
Join Date: Feb 2013
a sheet in NSTabVIew

I have A window with NSTAbView inside.

i have different xib files which loads in the view depending of the selection.
In one of this view i want to implement a modal sheet.

i make this:

Code:
- (IBAction) showSheet:(NSWindow*)window
{
	// User has asked to see the dialog. Display it.
    
    if (!self.clientsDialog)
        [NSBundle loadNibNamed: @"clientsSheet" owner: self];
    [NSApp beginSheet: self.clientsDialog
       modalForWindow: [[NSApp delegate] window]
        modalDelegate: self
       didEndSelector: NULL
          contextInfo: NULL];
    
    
}
Before make NSTabView it worked when the button was on the main window, not it crashes.
cpuin is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:23 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC