• 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
[SOLVED] Re: Sheet comes up disabled on second showing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SOLVED] Re: Sheet comes up disabled on second showing


  • Subject: [SOLVED] Re: Sheet comes up disabled on second showing
  • From: Graham Cox <email@hidden>
  • Date: Sat, 28 Nov 2009 21:28:33 +1100

On 27/11/2009, at 12:32 PM, Graham Cox wrote:

> I have a straightforward sheet containing a table and some buttons. First time I show it, it comes up fine and works as it should. All subsequent times, the whole interface is disabled except for the default button, so I can close it but I can't do anything in it. I'm not using bindings and the code is very straightforward:


Never mind - it was a straightforward error on my part (not surprisingly).

Knowing that windows are loaded lazily, I was initialising a subcontroller (for handling the table, which is shared with another UI elsewhere) from the -windowDidLoad method, which is only called on the first load of the window. On subsequent loads, it isn't called so the subcontroller was not passed the reference to the data model, so had nil, which is its cue to grey out all the controls.

Simply fixed - sorry for the noise.

--Graham


_______________________________________________

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

References: 
 >Sheet comes up disabled on second showing (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Transparency Help 2
  • Next by Date: Cast NSNumber to int
  • Previous by thread: Sheet comes up disabled on second showing
  • Next by thread: Core Data - any way to back it with something other than SQLite 3?
  • Index(es):
    • Date
    • Thread