Re: UITableCellView width decreases when scrolling

2013-04-14 Thread Luke Hiesterman
I wouldn't put too much stock in the link you reference. Many of the statements made are simply wrong, and there are better strategies. In general, if you want to put custom stuff in a cell, you should do it by adding views - like labels, image views, etc. Only if you find a scrolling performan

Re: UITableCellView width decreases when scrolling

2013-04-14 Thread Glenn L. Austin
On Apr 14, 2013, at 8:43 PM, Koen van der Drift wrote: > I'm using a custom UITableCellView, with a UIView where I do all the drawing > as a subView of the contentView, more or less following the tutorial on this > page: > http://giorgiocalderolla.com/blog.html#customizing-uitableviewcells-a-

UITableCellView width decreases when scrolling

2013-04-14 Thread Koen van der Drift
I'm using a custom UITableCellView, with a UIView where I do all the drawing as a subView of the contentView, more or less following the tutorial on this page: http://giorgiocalderolla.com/blog.html#customizing-uitableviewcells-a-better-way I noticed that when I scroll the table, at one point th

Re: After Photoshop closes a doc

2013-04-14 Thread Cody Garvin
You'd most likely need to create a photoshop plugin to get such a notification. Please excuse mobile typos On Apr 14, 2013, at 3:34 PM, Leonardo wrote: > Hi, I would like my app executes a given task when Photoshop closes its > current document. May I get a notification about that on my app? >

Core Data grinds for 30 min saving SQLite. 10.6 Bug?

2013-04-14 Thread Jerry Krinock
With a particular data set, I can reproduce a behavior in Mac OS X 10.6.8 wherein -[NSManagedObjectContext save:] frantically writes and deletes a .sql-journal file for 28-30 minutes, as memory usage ramps up to 1.5 GB real + 3 GB virtual. Then, amazingly, malloc logs a message indicating inabi

Re: Followup - Re: Is there a pattern for creating an object with global scope?

2013-04-14 Thread Graham Cox
On 14/04/2013, at 2:08 PM, YT wrote: > My struggle is partially due to my lack of experience in OOP. I just have not > written enough OO code as of yet. AND I'm very new to Objective-C. Hence my > lack of experience and working knowledge of Objective-C. > > extern int gFoobar; > > I underst

Re: makeKeyAndOrderFront (not working)

2013-04-14 Thread Pax
Perfect (well, perfect barring extended testing). So far this seems to do the trick: [[NSApplication sharedApplication] activateIgnoringOtherApps : YES]; Thanks for the suggestion. If it breaks something else I'll be sure you let you know. On 14 Apr 2013, at 17:47, Uli Kusterer wrote: > I

After Photoshop closes a doc

2013-04-14 Thread Leonardo
Hi, I would like my app executes a given task when Photoshop closes its current document. May I get a notification about that on my app? Regards -- Leonardo ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: get return value from NSUserUnixTask

2013-04-14 Thread Rainer Standke
You are right Ken, thanks for pointing me in this direction. This gets me data that is sent to the script/task's standard output: NSUserUnixTask *task = [[NSUserUnixTask alloc] initWithURL:userScriptURL error:nil]; NSPipe *outPipe = [NSPipe pipe]; task.standardOu

Re: makeKeyAndOrderFront (not working)

2013-04-14 Thread Uli Kusterer
I think the problem may be your UIElement-ness. It's been ages since I worked on a UIElement app, and when I did it had to pop something up on the screen atop of everything, so I just put my window in the floating window layer (or was it called Utility window level? Well, one of the CGWindowLeve

Re: Followup - Re: Is there a pattern for creating an object with global scope?

2013-04-14 Thread Uli Kusterer
On 14.04.2013, at 06:29, Steve Mills wrote: > Oh, that's easy, once you know how to make singletons. OK, I wouldn't call it > easy, but it's the right thing to do. If the C++ Steve wrote helps you understand things better, here's a 1-to-1 translation of that code to the equivalent in Objective

makeKeyAndOrderFront (not working)

2013-04-14 Thread Pax
I want my window to come to the front when I select it. My window (with its own class to handle it), sadly, has other ideas - and stays resolutely in the background. Complicating matters, my app is faceless - just a menu item to show for itself, and no icon in the dock. The code I'm having pr

Re: Is there a pattern for creating an object with global scope?

2013-04-14 Thread Scott Ribe
On Apr 13, 2013, at 9:51 PM, Jens Alfke wrote: > C++ static initializers are evil, though, at least the ones that run code. > They run super early, in an undefined order, with no way to specify > dependencies between them; so if you’re not careful they can slow down launch > and/or cause weird