searching through all user accounts

2012-07-29 Thread Rick C.
Hi, I have a search app which normally searches through the current users home directory using NSTask and find command. If I wanted to make it search through all user accounts could I ask some advice on what is the best way to make it work? Because I know permissions will be an issue.

occasional crash when closing app document: forwardMethod?

2012-07-29 Thread Martin Hewitson
Dear list, I have a document based app which uses ARC. I have occasional crashes when closing a document. I'm guessing it's a memory issue somewhere, but I'm looking for clues as to where to start looking, or how to sensibly debug this. The backtrace looks like this: * thread #1: tid =

Re: 10.7 Full-Screen transition animation corrupts my UI - how to avoid?

2012-07-29 Thread Motti Shneor
Hi Quincy, and thanks. You're were right, and I forgot to send my post to the mailing-list (late night programming). I already redirected the message to the list. In the mean time --- I think you dug deep, maybe too-deep for what I need. The latest docs for setContentsMinSize are clear enough

Re: How to anchor a child-window to its parent top-right (or other point) while parent resizes.

2012-07-29 Thread Motti Shneor
On 22 ביול 2012, at 19:52, Keary Suska wrote: On Jul 22, 2012, at 5:34 AM, Motti Shneor wrote: This seems a real newbie question, but the solutions I found seem too complicated for my task. I have a non-NSPopover pop-over info window (can't use NSPopOver for many reasons). This

NSDocument window opens - even if the document didn't read properly.

2012-07-29 Thread Pascal Harris
I hope that someone here might be able to help me with a couple of queries. 1. I'm trying to open a document (NSDocument). If the file is good then my program opens it without problem. If the document fails to parse correctly then the NSDocument window still opens - but it opens empty. Of

Re: occasional crash when closing app document: forwardMethod?

2012-07-29 Thread Mike Abdullah
What have you tried? First step with something like this is almost always to turn on NSZombie. On 29 Jul 2012, at 11:28, Martin Hewitson wrote: Dear list, I have a document based app which uses ARC. I have occasional crashes when closing a document. I'm guessing it's a memory issue

Re: NSDocument window opens - even if the document didn't read properly.

2012-07-29 Thread Mike Abdullah
Hello, there are many things wrong with your code. I’m noting them below. On 29 Jul 2012, at 18:53, Pascal Harris wrote: I hope that someone here might be able to help me with a couple of queries. 1. I'm trying to open a document (NSDocument). If the file is good then my program opens it

bindings keypaths and collections

2012-07-29 Thread William Squires
If a class declares an @property that's a reference to one of the collection classes (or a mutable variant thereof), such as NSArray, NSDictionary, NSSet, etc… can a key path (for bindings) refer to on object in that collection? If so, what's the syntax? Ex: my GameEngine class has an

Re: NSDocument window opens - even if the document didn't read properly.

2012-07-29 Thread Pascal Harris
Mike, Thanks for taking time on a Sunday to reply promptly. I'm very grateful. Taking each point On 29 Jul 2012, at 19:10, Mike Abdullah cocoa...@mikeabdullah.net wrote: Hello, there are many things wrong with your code. I’m noting them below. On 29 Jul 2012, at 18:53, Pascal Harris

Re: bindings keypaths and collections

2012-07-29 Thread Quincey Morris
On Jul 29, 2012, at 11:15 , William Squires wsqui...@satx.rr.com wrote: Ex: my GameEngine class has an @property (nonatomic, strong) Player *player; The Player class, in turn, has an @property (nonatomic, strong) NSMutableArray *inventory; and the following method

Re: NSDocument window opens - even if the document didn't read properly.

2012-07-29 Thread Quincey Morris
On Jul 29, 2012, at 10:53 , Pascal Harris 45rpmli...@googlemail.com wrote: 2. If the document fails to open then I want to copy it to a new location, with a new extension (see above). This fails. I can't think why! On Jul 29, 2012, at 11:47 , Pascal Harris 45rpmli...@googlemail.com wrote:

Re: searching through all user accounts

2012-07-29 Thread Jens Alfke
On Jul 29, 2012, at 3:23 AM, Rick C. rickcort...@gmail.com wrote: I have a search app which normally searches through the current users home directory using NSTask and find command. If I wanted to make it search through all user accounts could I ask some advice on what is the best way to

Re: occasional crash when closing app document: forwardMethod?

2012-07-29 Thread Jens Alfke
On Jul 29, 2012, at 3:28 AM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: I have a document based app which uses ARC. I have occasional crashes when closing a document. I'm guessing it's a memory issue somewhere, but I'm looking for clues as to where to start looking, or how to

Hang detection

2012-07-29 Thread John MacMullin
My app hangs due to what appears to be two competing operations. Appears because other possible reasons may exist. How do I snapshot, debug or otherwise detect and obtain a stack trace of the code causing the hang? Best regards, John MacMullin ___

Re: Hang detection

2012-07-29 Thread Charlie Dickman
The way I would do it, even though it may be old fashioned, would be to define an int (or NSNumber) in each of the operations that could be involved in the hang (race condition) that is assigned a value other than 0 that uniquely represents the operation when it begins and set back to 0 when

Re: Hang detection

2012-07-29 Thread Scott Ribe
Sample the process; see man sample. On Jul 29, 2012, at 2:56 PM, John MacMullin wrote: How do I snapshot, debug or otherwise detect and obtain a stack trace of the code causing the hang? -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice

Re: Hang detection

2012-07-29 Thread Scott Ribe
On Jul 29, 2012, at 4:49 PM, Scott Ribe wrote: Sample the process; see man sample. On Jul 29, 2012, at 2:56 PM, John MacMullin wrote: How do I snapshot, debug or otherwise detect and obtain a stack trace of the code causing the hang? I was assuming of course, that you can't just run it

Adding login items - who's right? The headers or the guide?

2012-07-29 Thread João Varela
Hello All I would like to support the new way of adding login items by adopting the Services Management framework. As I I would like to support Snow Leopard I was quite pleased when I read that SMLoginItemSetEnabled function was available on OS X 10.6.6 and later. You can check it here:

Re: FSEvents eventid (or perhaps event)'s life

2012-07-29 Thread Alfian Busyro
Thanks, So, this will be more comfortable if I can have my own fseventstd to handle all the events, how do you think ? Regards, Alfian On 12/07/27 19:54, Robert Martin wrote: The IDs relate to the drive, not the system. If you switch to a back up drive of your data, or re-partition your

Re: searching through all user accounts

2012-07-29 Thread Rick C.
Thank you all! rc On Jul 30, 2012, at 3:23 AM, Jens Alfke j...@mooseyard.com wrote: On Jul 29, 2012, at 3:23 AM, Rick C. rickcort...@gmail.com wrote: I have a search app which normally searches through the current users home directory using NSTask and find command. If I wanted to

Custom UITableView cell label with ARC and storyboards

2012-07-29 Thread Alex Zavatone
I've put together a TVC with a custom TVC cell class consisting mainly of UILabels, but have the problem where the labels will have varying amounts of lines of text. The main issue is that in iOS 5.x, UILabels still can't be vertically aligned to the top. There is a fair amount of source

Re: Custom UITableView cell label with ARC and storyboards

2012-07-29 Thread David Duncan
On Jul 29, 2012, at 7:02 PM, Alex Zavatone z...@mac.com wrote: I've put together a TVC with a custom TVC cell class consisting mainly of UILabels, but have the problem where the labels will have varying amounts of lines of text. The main issue is that in iOS 5.x, UILabels still can't be

Re: Custom UITableView cell label with ARC and storyboards

2012-07-29 Thread Alex Zavatone
On Jul 29, 2012, at 10:30 PM, David Duncan wrote: On Jul 29, 2012, at 7:02 PM, Alex Zavatone z...@mac.com wrote: I've put together a TVC with a custom TVC cell class consisting mainly of UILabels, but have the problem where the labels will have varying amounts of lines of text. The

Re: Custom UITableView cell label with ARC and storyboards

2012-07-29 Thread David Duncan
On Jul 29, 2012, at 7:38 PM, Alex Zavatone z...@mac.com wrote: On Jul 29, 2012, at 10:30 PM, David Duncan wrote: On Jul 29, 2012, at 7:02 PM, Alex Zavatone z...@mac.com wrote: I've put together a TVC with a custom TVC cell class consisting mainly of UILabels, but have the problem where

Re: Custom UITableView cell label with ARC and storyboards

2012-07-29 Thread Alex Zavatone
On Jul 29, 2012, at 10:48 PM, David Duncan wrote: On Jul 29, 2012, at 7:38 PM, Alex Zavatone z...@mac.com wrote: On Jul 29, 2012, at 10:30 PM, David Duncan wrote: On Jul 29, 2012, at 7:02 PM, Alex Zavatone z...@mac.com wrote: I've put together a TVC with a custom TVC cell class

Re: Custom UITableView cell label with ARC and storyboards

2012-07-29 Thread David Duncan
On Jul 29, 2012, at 7:55 PM, Alex Zavatone z...@mac.com wrote: On Jul 29, 2012, at 10:48 PM, David Duncan wrote: On Jul 29, 2012, at 7:38 PM, Alex Zavatone z...@mac.com wrote: On Jul 29, 2012, at 10:30 PM, David Duncan wrote: On Jul 29, 2012, at 7:02 PM, Alex Zavatone z...@mac.com

Re: Custom UITableView cell label with ARC and storyboards

2012-07-29 Thread Alex Zavatone
Thanks. I moved the resizing of the frame in a method in the custom cell class instead of in the TVC's cellForRowAtIndexPath. What is strange is that I call it from the TVC's cellForRowAtIndexPath and it works just fine, but didn't do anything when in the TVC's cellForRowAtIndexPath. Not

Re: Adding login items - who's right? The headers or the guide?

2012-07-29 Thread Stephen J. Butler
On Sun, Jul 29, 2012 at 6:09 PM, João Varela joaocvar...@gmail.com wrote: I would like to support the new way of adding login items by adopting the Services Management framework. As I I would like to support Snow Leopard I was quite pleased when I read that SMLoginItemSetEnabled function was