Re: Disappearing accessory view
Re: Disappearing accessory view
- Subject: Re: Disappearing accessory view
- From: Kyle Sluder <email@hidden>
- Date: Wed, 17 May 2017 10:17:06 -0500
On Mon, May 15, 2017, at 05:49 PM, Michael McLaughlin wrote:
> I am saving the savePanel because it contains the radio buttons selecting
> PDF or PNG and those buttons send an IBAction to the NSDocument for
> printing.
I don’t understand this reasoning. Your invariant is that the document
must outlive the save panel; retaining the save panel from the document
doesn’t help maintain that invariant.
There is no guarantee about whether -prepareSavePanel: reuses the
previous NSSavePanel instance. You should create a new accessoryView
every time this method is called.
--Kyle Sluder
>
> This is not a sandboxed app.
>
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Sun, 14 May 2017 22:12:48 -0700
> > From: Quincey Morris <email@hidden>
> > To: Michael McLaughlin <email@hidden>
> > Cc: email@hidden
> > Subject: Re: Disappearing accessory view
> > Message-ID:
> > <email@hidden>
> > Content-Type: text/plain; charset="utf-8"
> >
> > On May 14, 2017, at 11:18 , Michael McLaughlin <email@hidden> wrote:
> >>
> >> thisSavePanel = savePanel;
> >
> >
> > Why are you saving the panel reference? If this is a sandboxed app, the save panel handling is very weirdly smeared across multiple processes, so keeping it around (if that’s what you’re doing) doesn’t seem like a good idea. Can you try creating a new save panel each time in your “prepareSavePanel” method?
> >
>
> --
> Michael McLaughlin
> email@hidden
>
>
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden