Problems with setImage

2011-03-06 Thread Benedikt Iltisberger
Hello everybody, I have a problem with the setImage method because its leaking memory. I think I understood memory management but I still can't see the problem. Here is all related code: Headerfile Interface: NSButton * myButton; Headfile: @property (nonatomic, retain) IBOutlet

Re: Problems with setImage

2011-03-06 Thread Quincey Morris
On Mar 6, 2011, at 00:19, Benedikt Iltisberger wrote: NSBitmapImageRep *bitmapRep = [[NSBitmapImageRep alloc] initWithCGImage:cgImage]; NSImage *image = [[NSImage alloc] init]; [image addRepresentation:bitmapRep]; [bitmapRep release]; LEAK - [myButton

Re: Problems with setImage

2011-03-06 Thread Benedikt Iltisberger
Hey Quincey, thanks for the reply. You helped me to solve the problem. I was not releasing the arguments of the method (cgImage). I guess because the other variables depend on this one I need to release it first in order to release the rest. After I added this everything works great! Thanks

IB Plugins XCode 4

2011-03-06 Thread Macdev
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription:

Re: IB Plugins XCode 4

2011-03-06 Thread lbland
hi- On Mar 6, 2011, at 12:04 PM, Macdev wrote: ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Re: IB Plugins XCode 4

2011-03-06 Thread Kyle Sluder
Xcode 4 is under NDA. You cannot talk about it here. Visit the Developer Forums: http://devforums.apple.com --Kyle Sluder On Mar 6, 2011, at 9:07 AM, lbland lbl...@vvi.com wrote: hi- On Mar 6, 2011, at 12:04 PM, Macdev wrote: ___

Re: IB Plugins XCode 4

2011-03-06 Thread Macdev
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription:

Re: IB Plugins XCode 4

2011-03-06 Thread Gary L. Wade
I'm not disagreeing about the NDA, but Xcode 4 is covered in the just-released book iOS SDK Programming: A Beginner's Guide by Brannan and Ward, which I saw at BN last night. - Gary L. Wade (Sent from my iPhone) On Mar 6, 2011, at 9:21 AM, Kyle Sluder kyle.slu...@gmail.com wrote: Xcode 4 is

Re: rerunning an NSOperation object

2011-03-06 Thread Robert Monaghan
Hi Shane, NSOperationQueue will not let you re-run a previously run NSOperation Object. What I did to get around the problem was to create my own NSObject that does what I want. I then wrapped the object with an NSOperation object to run. Once complete, I can simply re-use my NSObject by

Re: binding relationship to checkbox

2011-03-06 Thread Jerry Krinock
On 2011 Mar 05, at 08:20, Amy Heavey wrote: This sounds to me like something that should be doable with the 'magic' of bindings Well, bindings should certainly be involved, but there is more to it than that. The most important is the view that will display your checkbox column. Assuming

Re: rerunning an NSOperation object

2011-03-06 Thread Matt Neuburg
On Sat, 05 Mar 2011 21:33:43 -0600, Shane software.research.developm...@gmail.com said: I then see that the NSOperationQueue Class Reference says this about addOperation: ... Similarly, this method throws an NSInvalidArgumentException exception if the operation is currently executing or has

Re: NSBrowser column resizing

2011-03-06 Thread Raleigh Ledet
Why not just a headerViewController on NSBrowser proper? -raleigh On Mar 2, 2011, at 10:03 AM, Scott Ribe wrote: I need to implement a custom control, which would look very much like an NSBrowser with a header row above each column which would have 1 or 2 controls per column. It seems like

Re: NSBrowser column resizing

2011-03-06 Thread Scott Ribe
On Mar 6, 2011, at 4:01 PM, Raleigh Ledet wrote: Why not just a headerViewController on NSBrowser proper? That looks like it might be exactly what I want. I missed it when skimming NSBrowser/Delegate docs. Thanks. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303)

[moderator] Re: IB Plugins XCode 4

2011-03-06 Thread Scott Anguish
Regardless... Until we release a GM, it is still under NDA. All this means is Brannnan and Ward’s publisher jumped the gun. AND, the xcode list would be a much better place for this type of discussion anyways. Scott [moderator] On Mar 6, 2011, at 1:19 PM, Gary L. Wade wrote: I'm not

[Moderator] Re: Invitation to connect on LinkedIn

2011-03-06 Thread Scott Anguish
Handled. User has been moderated. Don’t post these here. You’ll get moderated. And you also annoy 8000+ potential employers and colleagues. [Scott] On Mar 6, 2011, at 1:26 AM, Arnab Ganguly via LinkedIn wrote: LinkedIn Arnab Ganguly requested to add you as a connection on

Sync Services for Multi-machine Core Data App?

2011-03-06 Thread Steve Steinitz
Hi, Our Core Data point-of-sale app currently shares a sqlite database on an NAS, each machine periodically fetching fresh data and, of course, saving. It works well and fast but is vulnerable to: network failure, Apple preventing it (as evidenced briefly in 10.6.2), sqlite

Re: Question about Cocoa leaks

2011-03-06 Thread Laurent Daudelin
On Mar 4, 2011, at 19:50, Quincey Morris wrote: On Mar 4, 2011, at 17:54, Laurent Daudelin wrote: So, can anybody explain what is going on here and whether I should be concerned by those leaks? For each heapshot, I scan 31770 items on disk and each heapshot results in between 8.84KB and

Re: Sync Services for Multi-machine Core Data App?

2011-03-06 Thread Nick Zitzmann
On Mar 6, 2011, at 11:23 PM, Steve Steinitz wrote: Hi, Our Core Data point-of-sale app currently shares a sqlite database on an NAS, each machine periodically fetching fresh data and, of course, saving. It works well and fast but is vulnerable to: network failure, Apple