Ensuring no selection in a table view

2010-12-28 Thread John Brownie
I'm new to Cocoa, coming from Carbon programming (and, before that, Unix). I am creating a utility-type window which shows information about the current document, and one of the pieces is a table view listing one or more items. The user can't do anything with this information apart from look a

Re: XML to Plist

2010-12-28 Thread Peter Lübke
Hi Sandro, just to mention it (this has nothing to do with your original question): Why don't you create your NSMutableDictionary with [NSMutableDictionary dictionary] ? This produces exactly the same result as [[[NSMutableDictionary alloc] init] autorelease] - practically all Cocoa CLASS met

Multiple File Open Strategy

2010-12-28 Thread Jeremy Torres
Hello. I have a working implementation using Grand Central dispatch queues that open a file and compute an OpenSSL DSA hash, writing out the hash to a new "side car" file for later verification. I would like to open multiple files at the same time, but based on some logic that doesn't "choke"

Grand Central Strategy for Opening Multiple Files

2010-12-28 Thread Jeremy Torres
Hello. I have a working implementation using Grand Central dispatch queues that open a file and compute an OpenSSL DSA hash, writing out the hash to a new "side car" file for later verification. I would like to open multiple files at the same time, but based on some logic that doesn't "choke"

Deleting root:wheel-owned file and stopping root daemon

2010-12-28 Thread eveningnick eveningnick
Hello How do these operation can be performed from a cocoa application? I have read through Security server, credentials and rights documents, but to be honest got lost in tons of information. what kind of rights should i acquire from security server to delete root-owned file and to stop root daemo

Re: NSFileManager Wildcard Characters

2010-12-28 Thread koko
Ok ... UNIX is my friend, thanks! - koko On Dec 28, 2010, at 12:31 PM, Robert Martin wrote: UNIX is your friend, since OSX is built on top of it. All its tools work just fine if you find yourself missing something in the frameworks. On Dec 28, 2010, at 2:16 PM, Scott Ribe wrote: On De

Re: NSFileManager Wildcard Characters

2010-12-28 Thread Robert Martin
UNIX is your friend, since OSX is built on top of it. All its tools work just fine if you find yourself missing something in the frameworks. On Dec 28, 2010, at 2:16 PM, Scott Ribe wrote: > On Dec 28, 2010, at 12:02 PM, k...@highrolls.net wrote: > >> I don't have any files with "._Name" so I c

Re: NSFileManager Wildcard Characters

2010-12-28 Thread Scott Ribe
On Dec 28, 2010, at 12:02 PM, k...@highrolls.net wrote: > I don't have any files with "._Name" so I cannot test but need to remove all > hidden files from removable media, primarily USB sticks. NSFileManager doesn't offer any remove that does wildcard matching. You'll have to enumerate the dire

Re: Runtime Error: Incompatable applications

2010-12-28 Thread John Joyce
On Dec 28, 2010, at 8:52 AM, Ayers, Joseph wrote: > I get a run time error on my application Roboplasm. To wit: > > 2010-12-28 09:02:30.573 Roboplasm[29731:903] Incompatible applications: > app=com.northeastern.Roboplasm, targetApp=com.apple.Safari > > Any idea what's happening here? > > Than

NSFileManager Wildcard Characters

2010-12-28 Thread koko
I don't see in the docs so thought I'd ask ... NSFileManager* defaultManager = [NSFileManager defaultManager]; [defaultManager removeItemAtPath:@"._*" error:&error]; I can hardcode for known "." files such as .Trashes I don't have any files with "._Name" so I cannot test but ne

Re: XML to Plist

2010-12-28 Thread Sandro Noël
Greg, Thank you for the input, I was just in the process of writing that down on paper. very appreciated!! Sandro. On 2010-12-28, at 1:56 PM, Greg Guerin wrote: > Sandro Noël wrote: > >> the glitch that breaks all my current logic is when there are elements with >> the same name at the sa

Re: XML to Plist

2010-12-28 Thread Greg Guerin
Sandro Noël wrote: the glitch that breaks all my current logic is when there are elements with the same name at the same level. for instance in a RSS, rss chanel item item item this breaks the logic I can apply to a NSDictionary, becau

Re: XML to Plist

2010-12-28 Thread Gary L. Wade
Following on the same path as suggested to take a step back and examine what you want to happen, launch Property List Editor, create a Property List file, and manually add the items from your XML scenarios to determine what you really want to happen for each item you encounter. On 12/28/2010 10:34

Re: XML to Plist

2010-12-28 Thread Sandro Noël
Greg, thank you. the glitch that breaks all my current logic is when there are elements with the same name at the same level. for instance in a RSS, rss chanel item item item this breaks the logic I can apply to a NSDictionary, because th

Re: Runtime Error: Incompatable applications

2010-12-28 Thread Jerry Krinock
On 2010 Dec 28, at 06:52, Ayers, Joseph wrote: > 2010-12-28 09:02:30.573 Roboplasm[29731:903] Incompatible applications: > app=com.northeastern.Roboplasm, targetApp=com.apple.Safari Wow. Try to reproduce this on a new Mac account that doesn't have any third-party plugins, input managers or ot

Re: XML to Plist

2010-12-28 Thread Greg Guerin
Sandro Noël wrote: - (NSDictionary *) plist{ NSMutableDictionary *resultDict = [[[NSMutableDictionary alloc] init] autorelease]; if ([self hasChildren]){ NSMutableArray *child = [[[NSMutableArray alloc]init] autorelease]; for (OSXMLElement *element in

XML to Plist

2010-12-28 Thread Sandro Noël
Greetings. I'm trying to convert XML file to a plist format. i am using the event driven method of XMLParser for iOS. it is currently working to some level but i am having a problem with XMl elements all being nested into Dictionaries. for example the following XML: text

Re: Memory management about async object

2010-12-28 Thread James Bucanek
ico wrote (Tuesday, December 28, 2010 11:18 PM +0800): My question is, when should I release the myHandler? Should I release it in the myCallback, but after myCallback method finishes, it will return point 1 indicated as above, and that myHandler instance is just rele

Runtime Error: Incompatable applications

2010-12-28 Thread Ayers, Joseph
I get a run time error on my application Roboplasm. To wit: 2010-12-28 09:02:30.573 Roboplasm[29731:903] Incompatible applications: app=com.northeastern.Roboplasm, targetApp=com.apple.Safari Any idea what's happening here? Thanks, Joseph ___ Cocoa-de

Re: Memory management about async object

2010-12-28 Thread ico
Hi Stephen, Thanks for your reply, so there is no any perfect solution for this kind of problem? And can you give me a specific example to demonstrate why why it is not safe to release these async objects inside a callback method and why not safe to autorelease it? Thanks. On Tue, Dec 28, 2010 at

Re: Drawing to two CALayers at once (or pretend to)?

2010-12-28 Thread vincent habchi
Raphael, Seth, > I think a single model instance, storing a parsed path, accessed by both > layers sounds like the best approach. If you have lots and lots of paths, > then the memory problem would be secondary to the problem of the time it > would take to parse them from your DB. > > If you h

Re: Memory management about async object

2010-12-28 Thread Stephen J. Butler
On Tue, Dec 28, 2010 at 12:18 AM, ico wrote: > My question is, when should I release the myHandler? Should I release it in > the myCallback, but after > myCallback method finishes, it will return point 1 indicated as above, and > that myHandler instance is just > released. > > Or there is a better