Re: stdout or stderr file path on iPhone?

2011-08-30 Thread Chris Markle
Manfred, > Background: I have a third party library (that I am not allowed to change) > that logs to a file in Debug mode. I want to see this log output directly in > the Xcode console, because transferring log files from the iPhone is too > complicated. The library provides an API to set the f

How to wait for methods with result/completion blocks to finish?

2011-03-07 Thread Chris Markle
This is on iOS... Say I have use a method that has some kind of result/completion block like ALAssetsLibrary assetForURL In the example below, in the assetForURL result block, the JPEG representation of the asset is read into a buffer and the NSData form of that buffer is assigned to a property. I

Re: How to wait for methods with result/completion blocks to finish?

2011-03-08 Thread Chris Markle
Matt, Kyle, Thanks for the guidance and pointers to other doc. I am having trouble wrapping my head around the asynch patterns, especially since I am working with a code base that I inherited that is not doing a good job of leveraging these patterns. There are two cases (at least) in that app (wh

Re: How to wait for methods with result/completion blocks to finish?

2011-03-09 Thread Chris Markle
Matt, Kyle, Thanks for taking your time to give me your thoughts on this. It's good food-for-thought and "thought" is what I need now... Thanks! Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderato

Seeking advice for how to implement "notification" upon completion of asynchronous upload

2011-03-31 Thread Chris Markle
Still fairly new here to iOS and Objective-C programming, so looking for some advice to help keep me from going down the wrong road(s)... I would like to build an Objective-C class or classes to perform a file upload using a non-standard protocol. It would run the upload asynchronously and would ne

Re: Seeking advice for how to implement "notification" upon completion of asynchronous upload

2011-04-01 Thread Chris Markle
WT, Thanks for the code! So of the approaches: >> 1. delegates >> 2. blocks >> 3. KVO >> 4. Notifications you went with delegates (didFinishDownloadingData: and failedWithError:) for completion notification. Has this worked out well for others that have used this code? Did you consider any of t

Has anyone used the VOIP background mode for a non-VOIP app?

2011-05-17 Thread Chris Markle
The "App Store Review Guidelines" state (2.16) that "Multitasking apps may only use background services for their intended purposes: VoIP, audio playback, location, task completion, local notifications, etc." There is a background mode plist key (UIBackgroundModes="voip") for apps that provide VOI

Re: Has anyone used the VOIP background mode for a non-VOIP app?

2011-05-17 Thread Chris Markle
Steve, > This is a psychological quiz, right? Let's see if someone, who managed to > violate > the guidelines and GET AWAY with it, will come on a public list and admit to > it. Yeah I wondered about that... They could always reply directly to me - I don't work for Apple. For a small fee I coul

Hints for supporting dragging a file onto the dock icon, then onto a row in menu presented at that point?

2012-09-13 Thread Chris Markle
I'm pretty new to OS X development and just looking for hints about how to do something like this... I saw an app called Dragster that allows you to drag a file over the dock icon for the app, at which point a menu of rows opens up form the app icon, and you can continue to drag the file over a par

Anyone able to get __crashreporter_info__ to work on iOS?

2013-02-27 Thread Chris Markle
In "Application Specific Crash Report Information" (http://mjtsai.com/blog/2013/02/27/application-specific-crash-report-information/) Michael Tsai notes: * * * his comments * * * Wil Shipley shows how an application can add information to a crash log by assigning to a special string variable. I se

Re: Anyone able to get __crashreporter_info__ to work on iOS?

2013-02-27 Thread Chris Markle
Thanks for the followup Greg. Chris On Wed, Feb 27, 2013 at 5:05 PM, Greg Parker wrote: > On Feb 27, 2013, at 4:52 PM, Chris Markle wrote: >> Anyone have any success using this on technique to annotate crash >> reports on iOS? > > The iOS crash reporter does not supp

While we're on the subject of DMG's for software distribution...

2008-09-08 Thread Chris Markle
Hi Folks, (Not super saavy about Mac OS X here so bear with me please...) On the subject of DMG's... I inherited a software product that currently ships using some moldy-oldy version of the Wise installer. I think basically all it does is put the application _folder_ into the Applications folder.

How to create process independent of current process AND that takes command line arguments?

2008-04-03 Thread Chris Markle
Hi there, Preferably using Cocoa stuff, how can I create a separate process that is independent of my current process (that is I don't want the process to be a child of my current process) AND that can take command line arguments. I looked at NSTask and NSWorkspace classes and they don't look like

Re: How to create process independent of current process AND that takes command line arguments?

2008-04-03 Thread Chris Markle
Chris S., > Why do you not want it to be a child? The reason I ask is that if your > requirement is that the spawned process isn't terminated when the parent > dies, then NSTask will suffice. Whilst processes it spawns are children, > they're in a different process group and session and so don't

Re: How to create process independent of current process AND that takes command line arguments?

2008-04-03 Thread Chris Markle
Chris S., > Why do you not want it to be a child? The reason I ask is that if your > requirement is that the spawned process isn't terminated when the parent > dies, then NSTask will suffice. Whilst processes it spawns are children, > they're in a different process group and session and so don't

/Library/Logs vs. user/Library/Logs

2008-10-22 Thread Chris Markle
New to OS X development here... I see some things log to /Library/Logs and others to user/Library/Logs (user=an individual account). I'm thinking my app, which is a user-oriented app (not a system app) would log to the user-specific location. Unless it's bad form to log there and there is some othe

Re: /Library/Logs vs. user/Library/Logs

2008-10-23 Thread Chris Markle
Thanks guys. Good advice. Here's my summary of what you guys said: 1. Document to read: Low-Level File Management Programming Topics: Locating Directories on the System (http://developer.apple.com/documentation/Cocoa/Conceptual/LowLevelFileMgmt/Tasks/LocatingDirectories.html) 2. Putting logs into

Re: /Library/Logs vs. user/Library/Logs

2008-10-23 Thread Chris Markle
Jason, > Why not use ASL for logging? It's worked really well for me. I also have > an Obj-C class you can use that wraps ASL if you want. Right now our app runs (for better or for worse) on Windows and OS X with lots of common code between the two. I think ASL might work in the future as we beco

PackageMaker installing into /Applications or ~/Applications depending on admin or not?

2008-12-07 Thread Chris Markle
We have an installer for our current app that use Vise. We'd like to switch maybe to PackageMaker and its artifacts. One thing that the Vise-created install does is get installed to /Applications if you're and admin and to ~/Applications if you're a standard user. Does anyone know if PackageMaker d

Get Info via OS X UI on app with changed version data still shows old value, unless copied, then it works

2008-12-09 Thread Chris Markle
Confused here about where "Get Info" on an app bundle gets its info... I'm sure this is basic stuff for you guys, but I'm relatively new at this. I have a directory called say "AppDir" with an application bundle in it called "App1". I altered the various version strings and what-not in App1/Info.p