Re: Blocking while a save panel sheet is showing

2011-02-14 Thread Graham Cox
On 15/02/2011, at 12:09 AM, Kenneth Baxter wrote: > My understanding of what the framework does is: > > [delegate saveData]; > if (dataHasBeenSaved) { > do stuff > } else { > do different stuff > } > > So if my delegate method saveData uses the sheet to save, it will return from >

Re: Blocking while a save panel sheet is showing

2011-02-14 Thread Kenneth Baxter
Thanks Ken - don't know why I missed that when reading the documentation. It does what I need, thanks. On 15 Feb, 2011,at 02:34 AM, Ken Thomases wrote: Although Graham is right that document-modal sheets is the preferred user interface for saving, you can run the save panel as an application

Re: Blocking while a save panel sheet is showing

2011-02-14 Thread Ken Thomases
On Feb 14, 2011, at 7:09 AM, Kenneth Baxter wrote: > I'm afraid I can't see a way to refactor that so that saveData doesn't return > until the save operation is complete, and I can't see how the framework could > work properly without waiting for the completion of the save operation. > > Maybe

Re: Blocking while a save panel sheet is showing

2011-02-14 Thread Kenneth Baxter
Thanks for the reply Graham. It sounds as if I would have to have control over the framework to do as you suggest, but I don't have access to the framework source. My understanding of what the framework does is: [delegate saveData]; if (dataHasBeenSaved) { do stuff } else { do

Re: Blocking while a save panel sheet is showing

2011-02-14 Thread Graham Cox
On 14/02/2011, at 11:01 PM, Kenneth Baxter wrote: > Hi everyone, I am using a framework where I register as a delegate and when > my delegate method is called, I should be able to save my data, and then the > framework does different things based on whether the data has been saved or > not. >

Blocking while a save panel sheet is showing

2011-02-14 Thread Kenneth Baxter
Hi everyone, I am using a framework where I register as a delegate and when my delegate method is called, I should be able to save my data, and then the framework does different things based on whether the data has been saved or not. I need to ask the user for the file name to save as, and then

Blocking while a save panel sheet is showing

2011-02-14 Thread Kenneth Baxter
Hi everyone, I am using a framework where I register as a delegate and when my delegate method is called, I should be able to save my data, and then the framework does different things based on whether the data has been saved or not. I need to ask the user for the file name to save as, and then