Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SFPGetFile and SFPPutFile carbon replacements



on 7/29/04 5:33 PM, John Stiles <email@hidden> wrote:

> On Jul 29, 2004, at 4:42 PM, Kurt Bigler wrote:
>
>> Since I originally posted I have now tested under OS X also. Under OS X the
>> dialog is app modal, but still does not have a title bar, and is not moveable
>> or sizeable. Titled, moveable, sizeable file dialogs seem to be the norm
>> under OS X. Any idea what one could do wrong to cause this?
>
> I believe you need to provide an event filter. Otherwise, you wouldn't
> be able to handle things like update events on your windows, which
> would have been weird in OS 9. (Under OS X, update events are a lot
> rarer, of course.)

Well with all the questions I've asked, I owed it to the list to at least
try this in spite of what the doc said.

So I created an empty nav event proc, and immediately my Nav dialogs have
title bars and are moveable and sizeable under both OS 9 and OS X, and
furthermore they are now app modal under OS 9 in addition to OS X.

Everything behaved correctly except for updates behind the window. I fixed
this by simply calling my existing (non-nav) dialog filter proc from my nav
event proc like so:

pascal void NavEventProc (NavEventCallbackMessage callBackSelector,
NavCBRecPtr callBackParms, void *callBackUD)
{
if (callBackSelector == kNavCBEvent)
{
DialogRef dlg = GetDialogFromWindow (callBackParms->window);
short itemHit;
MyDialogFilter (dlg, callBackParms->eventData.eventDataParms.event,
&itemHit);
}
}

And of course, while I said I tried this "in spite of what the doc said" if
the truth be told the doc told me it was "highly recommended" to do this.

Thanks to everyone for their help over these last several days on all the
navigation issues that came up for me.

Ian please note you need not go looking for any code snippets.

-Kurt Bigler
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: SFPGetFile and SFPPutFile carbon replacements (From: John Stiles <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.