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

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 9, 2012, 05:02 AM   #1
sgthree
macrumors newbie
 
Join Date: Feb 2012
window question

I am trying to get my head around the difference between sheets and panels and other types of windows.

Could someone please tell me what is being used by the Mac Mail application (on Lion if that makes a difference) when one chooses Add Account from the file menu?
sgthree is offline   0 Reply With Quote
Old Mar 9, 2012, 12:06 PM   #2
Sydde
macrumors 68000
 
Sydde's Avatar
 
Join Date: Aug 2009
A sheet is a modal dialog that you attach to a window with a method call that causes it to be displayed. The idea was to make a modal dialog that did not block the user from doing things elsewhere (clicking into other windows) while it is displayed, also clarifying the dialog's target window.

Typically, you would build a sheet's layout in interface builder as a window object, then use that object as an argument to the method call that displays the sheet. File open/save sheets are a little more complicated to code yourself because they are asynchronous, but most of the time you just let NSDocument handle that for you.

Sheet Programming Guide
__________________
You got to be a spirit. You can't be no ghost.
Sydde 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

Similar Threads
thread Thread Starter Forum Replies Last Post
Safari 5.1.7 (Window/Activity download question.) svpolaris MacBook Air 1 Apr 12, 2014 11:07 AM
return/refund window question zeiter MacBook Pro 6 Feb 16, 2014 06:05 AM
A simple window controls question sajurcaju OS X 3 Dec 21, 2012 09:06 AM
New window question mckey Mac Basics and Help 6 Dec 8, 2012 01:26 PM
Mail Question - Preview Incoming Window? macNewbie02 Mac Applications and Mac App Store 3 Jul 23, 2012 03:31 PM

Forum Jump

All times are GMT -5. The time now is 04:09 AM.

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

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