• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to design / structure sheets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to design / structure sheets


  • Subject: How to design / structure sheets
  • From: "Mike Chambers" <email@hidden>
  • Date: Fri, 5 Dec 2008 10:20:16 -0800

I am creating a custom sheet for my application which allows a user to
add an item to iCal. However, it is not clear to me the best way to
structure my code.

Im following the info at:

http://developer.apple.com/documentation/Cocoa/Conceptual/Sheets/Tasks/UsingCustomSheets.html#//apple_ref/doc/uid/20001290

The Sheet is contained in a separate NIB / XIB file as an NSWindow.

I see two potential options:

1. Instantiate the sheet directly from my App controller and add all
sheet logic to that controller.

2. Create a class for the sheet, and add sheet logic to that class.
Controller would instantiate the class, tell it to open sheet, and
then get notified when it was closed.

Any input on which approach is the better way (or the Cocoa way)? If
#2, do I hook the nib up the its controller class in the same way I do
with my main controller and its nib?

mike
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to design / structure sheets
      • From: Ken Thomases <email@hidden>
    • Re: How to design / structure sheets
      • From: email@hidden
  • Prev by Date: NSViews and cursorRects and scrolling, oh my!
  • Next by Date: Re: NSSocketPort == BSD Socket
  • Previous by thread: NSViews and cursorRects and scrolling, oh my!
  • Next by thread: Re: How to design / structure sheets
  • Index(es):
    • Date
    • Thread