Didn't really help, now I get:

(AttributeError: 'builtin_function_or_method' object has no attribute 'beginSheet_modalForWindow_modalDelegate_didEndSelector_contextInfo_')

I get the feeling that NSApp doesn't have this method :\, or I've complete stuffed something up :\ (very possible)

Paul

From: Bob Ippolito <bob@redivi.com>
Date: 21 May 2005 5:31:40 PM
To: Paul Volpato <paul@volpato.net>
Cc: pyobjc-dev@lists.sourceforge.net
Subject: Re: [Pyobjc-dev] PyObjC & Sheets



On May 21, 2005, at 3:05 AM, Paul Volpato wrote:


Hi,
    I'm having trouble getting an NSPanel to show up like a sheet.  Do I use the incredibly long call back:

Obj-C:
[NSApp beginSheet:sheet modalForWindow:window
    modalDelegate:self didEndSelector:NULL contextInfo:nul];

PyObjC:
NSApp.beginSheet_modalForWindow_modalDelegate_didEndSelector_contextInfo(self.sheet,
    self.window, None)  #sheet and window are outlets of my controller

Is that correct?

And then to close it:

Obj-C:
[sheet orderOut:nil];
[NSApp endSheet:sheet]

PyObjC:
self.sheet.orderOut()
NSApp.endSheet_(self.sheet)

Is that correct?

I remember reading somewhere that sheets need something special to work.  (but I maybe completely mistaken).  Currently I'm getting the following error:

(AttributeError: 'builtin_function_or_method' object has no attribute 'beginSheet_modalForWindow_modalDelegate_didEndSelector_contextInfo')

So obviously I've made a mistake with my function call :\


You left off the underscore.  There is exactly one underscore for every colon.

-bob



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Pyobjc-dev mailing list
Pyobjc-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev