• 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
editing sheet Cocoa idiom
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

editing sheet Cocoa idiom


  • Subject: editing sheet Cocoa idiom
  • From: Will Koffel <email@hidden>
  • Date: Mon, 07 Feb 2005 15:11:13 -0500

I have an app with a collection of objects, editable by the user. The nature of the app is that these objects are edited via a modal UI, so I present an editing UI in a sheet. The EditObjectController class creates and manages the sheet from a dedicated NIB.

My question is how I manage editing multiple objects over the course of an app session. I feel like methods could include:

1. Create a new EditObjectController and associated sheet for each object, and keep them in sync.

2. Share an EditObjectController and sheet for the lifetime of the app, where I remove all the subviews and recreate them (not all objects have the same parts that can be edited) when I edit the next object.

I've been using the 2nd approach, but feel like it may not be right. Can anyone point me at the "Cocoa-ish" way to do this?

-Will
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: model for NSTableView (newbie)
  • Next by Date: Re: NSDraggingSource & Delegate?
  • Previous by thread: Re: model for NSTableView (newbie)
  • Next by thread: "Subclass" NSMutableArray basic concept?
  • Index(es):
    • Date
    • Thread