Re: [pyobjc] Custom sheet and didEndSelector

2009-01-27 Thread Gorazd Krosl
From: Domenico Testa Subject: [pyobjc] Custom sheet and didEndSelector To: Cocoa development mailing list Message-ID: Content-Type: text/plain; charset=UTF-8 > I want to show a custom sheet asking user for a choice depending on the > button clicked. > > That's my code: > snip > > @IBA

Re: Cocoa-dev Digest, Vol 5, Issue 2199

2008-12-23 Thread Gorazd Krosl
- Original Message From: Mahaboob Subject: Re: Saving the project To: Mike Abdullah Cc: "cocoa-dev@lists.apple.com" Message-ID: Content-Type: text/plain;charset="US-ASCII" Thanks for the help, Now it is working well with the menu item's action. I also need to perform the sam

Re: Setting action: with a variable

2008-05-27 Thread Gorazd Krosl
> Greetings, > > I am having trouble with something that should be pretty > basic.. > > What I would like to do is set the action for NSButton > programmatically where the selector is a variable. > > I can't seem to find an example. > > [aButton addTarget:self action:variable ] > > If I

Re: Cocoa-dev Digest, Vol 5, Issue 885

2008-05-23 Thread Gorazd Krosl
> -- > > Message: 3 > Date: Fri, 23 May 2008 07:43:31 -0400 > From: "John Love" <[EMAIL PROTECTED]> > Subject: NSProgressIndicator -- delete the first message > with same > title > To: "Cocoa Development" > > Message-ID: > <[EMAIL PROTECTED]> > Content-Typ

Re: NSView out of memory problem

2008-04-01 Thread Gorazd Krosl
Hi Leslie, NSView does not store any drawing. If the code bellow is executed in the loop as you are indicating and possibly several thousand times, each time through the loop you are creating a new autoreleased NSBezierPath. If this is the case, you should include NSAutoreleasePool and drain or fr

Re: CIImage (TIFFRepresentation) memory leak

2008-03-10 Thread Gorazd Krosl
"If all the code you're using is present, it looks to me like you're not releasing the object pointed at by image; the object returned by imageWithData is not an auto-released object." I just checked documentation (http://developer.apple.com/documentation/GraphicsImaging/Reference/QuartzCoreFrame

Re: Creating a NSTextField

2008-02-26 Thread Gorazd Krosl
>> But there is no initialization method for a >> NSTextField. How can I >> create a NSTextField? Just alloc? > NSTextField is a subclass of NSControl. Use > [[NSTextView >alloc] - initWithFrame:]. Then use > -addSubview: on your window's -contentView. And since > your NSTextView is not instantiat