Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 6, 2013, 01: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

Forum Jump

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

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

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