NSSavePanel

Hi All,

Have copied out exactly the code from Shane’s marvelous book to get a Save Panel working…

The only problem is that on clicking the button (that is linked to the handler in IB - i know because a cheeky display dialog works!) - no panel is created…

Is there a simple step i’m missing - any properties to be declared, the panel itself to be created in IB, do i need to call the runModal method?

I would paste the code - but i’d just be replicating the stuff from Shane’s book…

I’m at a loss…

OLIx

Can you tell us which type: a sheet or modal? Using Myriad Helpers? What page is the code you’re using on?

It’s the very first Modal example using the onModalSave_(sender) handeller…

I’ve not added the myrad helpers files (because from my reading i didn’t need them) - but because i’m over eager, I’ve not worked though the whole book. but have been cherry picking chapters that specifically relate to my project…

OLIx

There is no handler of that name – I assume you mean showModalSave_.

You don’t. I just double-checked by copying and pasting from the PDF to a new document, and it works fine.

That’s already included in the code: “set returnCode to runModal()”

Try copying and pasting.

You were, of course, right. Copying and pasting solved all my problems…

thanks again.

OLIx