Re: web-based Cocoa dev docs inaccessible

2010-09-13 Thread Andy Lee
On Sep 12, 2010, at 6:32 PM, Jeffrey Oleander wrote: Normally, I'd file an on-line criticism of the docs, but I can't get there, and this is the closest means I have to doing so. This list isn't an official channel for bug reports, so filing a Radar might actually be closer:

Unix Signals Delivered from Quitting Cocoa Apps?

2010-09-13 Thread aaron smith
Hey all, quick question. I'm working on a test to catch when an application crashes, and launch another executable (eventually crash reporter). I'm exhibiting strange behavior - whenever I quit the application normally, the information I'm getting back about what happened and why it stopped is

Re: Unix Signals Delivered from Quitting Cocoa Apps?

2010-09-13 Thread Ken Thomases
On Sep 13, 2010, at 2:30 AM, aaron smith wrote: I'm working on a test to catch when an application crashes, and launch another executable (eventually crash reporter). I'm exhibiting strange behavior - whenever I quit the application normally, the information I'm getting back about what

Re: Unix Signals Delivered from Quitting Cocoa Apps?

2010-09-13 Thread aaron smith
Thanks for pointing that I can't use high level frameworks in a child. I'll set up everything I need for the execvp call before the actual fork. AH! I totally missed that I need to use an int to store the child exit status info. Here's a version that works now.. http://pastebin.org/860040

Re: Unix Signals Delivered from Quitting Cocoa Apps?

2010-09-13 Thread Stephen J. Butler
On Mon, Sep 13, 2010 at 3:05 AM, aaron smith beingthexemplaryli...@gmail.com wrote: Thanks for pointing that I can't use high level frameworks in a child. I'll set up everything I need for the execvp call before the actual fork. AH! I totally missed that I need to use an int to store the

Re: Unix Signals Delivered from Quitting Cocoa Apps?

2010-09-13 Thread Ken Thomases
On Sep 13, 2010, at 3:05 AM, aaron smith wrote: Thanks for pointing that I can't use high level frameworks in a child. I'll set up everything I need for the execvp call before the actual fork. You haven't addressed the problem. I was not talking about the later fork(), but the first one.

Re: i5 i7 auto graphics switching

2010-09-13 Thread Stephane Madrau
2010/9/12 cocoa-dev-requ...@lists.apple.com When it is running on the slow card, the CGDirectDisplayID will be x, and on the fast card it will be y. Is there anyway to derive x from y or y from x? I am trying to be able to uniquely identify screens even before/after a processor switch. Given

Re: Unix Signals Delivered from Quitting Cocoa Apps?

2010-09-13 Thread aaron smith
Thanks for the suggestions! Yeah sorry I was getting around to fixing that return NSApplication thing. here's another version that avoids higher level framework usage.. http://pastebin.com/20W1ZD8r Does that look better? On Mon, Sep 13, 2010 at 1:38 AM, Ken Thomases k...@codeweavers.com

MediaPlayer.framework causing Core Data migration errors

2010-09-13 Thread Ben
What a pain this has been for me. I have finally narrowed down the culprit for an error during migration of core data. When I run migration without including MediaPlayer.framework my app runs fine... 2010-09-13 10:41:33.942 Test[3446:207] beginEntityMapping 2010-09-13 10:41:35.803

Re: Unix Signals Delivered from Quitting Cocoa Apps?

2010-09-13 Thread aaron smith
One more note about this. It does work as expected. But I am going to take out the dependency of having that hardcoded 1 parameter - which the child looks for so it only runs the cocoa app. I'll probably change it to use named pipes. Then it won't depend on having arguments correct. On Mon, Sep

Problem managing BLOB containing images

2010-09-13 Thread Andrea Mattiuz
I have problems with download and upload blob data in my iPhone app using Sqlite. Everything seems to be ok if I insert the photos in the blob field with SQLite manager: I can read the image and manage it with my app. When I export the table to xml with the SQLite manager's feature, it creates a

Re: web-based Cocoa dev docs inaccessible

2010-09-13 Thread Richard Somers
On Sep 12, 2010, at 4:32 PM, Jeffrey Oleander wrote: My BookMark has the URL: http://developer.apple.com/mac/library/navigation/index.html This takes me to: http://developer.apple.com/library/mac/navigation/ which I think is the official link for the Mac OS X Reference Library. I

How to highlight only part of the text in a text field?

2010-09-13 Thread Ulf Dunkel
When I open an openPanel in any application, I often see the file name field's content partly highlighted (or name it pre-selected), e.g. [myFileName].extension where the string part in [] is already selected and ready to be overwritten, keeping the .extension part untouched by default.

Re: How to highlight only part of the text in a text field?

2010-09-13 Thread Vincent Habchi
Le 13 sept. 2010 à 16:46, Ulf Dunkel a écrit : The myTextField content has already be composed (like e.g. @foo: bar). I would like to see only bar preselected when the window opens and the myTextField is selected for editing. I guess you folks know how to, while I poke through the

Re: CALayer instant content update

2010-09-13 Thread Matt Neuburg
On Fri, 3 Sep 2010 10:44:44 -0700, David Duncan david.dun...@apple.com said: If you want to have a layer that doesn't animate (crossfade) content changes, then set the layer's actions dictionary like so: layer.actions = [NSDictionary dictionaryWithObject:[NSNull null] forKey:@contents]; This

Re: i5 i7 auto graphics switching

2010-09-13 Thread Trygve Inda
2010/9/12 cocoa-dev-requ...@lists.apple.com When it is running on the slow card, the CGDirectDisplayID will be x, and on the fast card it will be y. Is there anyway to derive x from y or y from x? I am trying to be able to uniquely identify screens even before/after a processor switch.

Re: CALayer instant content update

2010-09-13 Thread David Duncan
On Sep 13, 2010, at 7:58 AM, Matt Neuburg wrote: I would recommend that Apple improve the documentation https://bugreport.apple.com/ or the feedback links at the bottom of every page in the documentation. If there isn't a bug, the issue doesn't exist. -- David Duncan

Re: Number of layout managers for NSTextStorage increases

2010-09-13 Thread Jens Bauer
Hi Ross, Thank you for your reply and pointers. (Sorry it took so long; I didn't see your reply until today). On Sep 7, 2010, at 12:22 PM, Jens Bauer wrote: ...Does anyone have an idea about why the number of layout managers increase ? I don't know the answer, but I expect it is easy to find

ScriptingBridge problem

2010-09-13 Thread John Nairn
I am working with my Cocoa app to be scriptable by Python and Ruby using ScriptingBridge as well as by AppleScript. It is all working well, but I hit a serious issue today when I ran a long script. A python script that is fine and thoroughly checked will crash if it runs a long time. It

Re: Number of layout managers for NSTextStorage increases

2010-09-13 Thread Kyle Sluder
On Mon, Sep 13, 2010 at 9:47 AM, Jens Bauer appleli...@bruger.mine.nu wrote: As I don't know how to set breakpoint in NSLayoutManager's -init with Xcode 2.5, I picked the second option. Unless you're still on Tiger, you should be running the latest version of Xcode 3. Either way, gdb hasn't

Re: ScriptingBridge problem

2010-09-13 Thread Kyle Sluder
On Mon, Sep 13, 2010 at 9:54 AM, John Nairn j...@geditcom.com wrote: I  am working with my Cocoa app to be scriptable by Python and Ruby using ScriptingBridge as well as by AppleScript. It is all working well, but I hit a serious issue today when I ran a long script. A python script that is

Backup color label

2010-09-13 Thread gMail.com
Hi, I need to backup only these files changes (not the content): Label color in the Finder Filename (uppercase, lowercase) Permissions Lock Status So I check the st_ctime of the files and detect whether to copy or not to copy their attributes with FSSetCatalogInfo. The problem is

Viewing a single NSTextStorage with two sets of attributes

2010-09-13 Thread Andrew Hughes
Hello all, I'm trying to figure out the cleanest method for viewing one NSTextStorage with multiple attributes (mostly font and paragraph attributes). Basically I am developing a text editor program and I would like to have two different views on the same text, one in a non- paginated

INSTALL_PATH ignored in XCode

2010-09-13 Thread Daniele
Hello guys, I'm making a plugin extensible application with bundles. Now, when I compile each bundle I would to put it automatically in a certain location in order to make some tests. My location is a folder inside Application Support. So I've taken the bundle target of my plugin project and

Timing of UI events

2010-09-13 Thread Andrew Coad
Can I ask for advice on the most accurate way of determining the exact time that a UI event occurs at? I have timing information coming into the application from the audio sub-system - this is translating audio samples into host time. I need to compare the time that the user touches a UIButton

Re: Question about architecture

2010-09-13 Thread Daniel Lopes
Thanks a lot for answer Chris, so I'm in the right direction. Have good week. -- Daniel Lopes On Sat, Sep 11, 2010 at 7:18 AM, Chris Hanson c...@me.com wrote: On Sep 9, 2010, at 7:32 AM, Daniel Lopes wrote: My idea for organization is separate the entire content on the left side in a

Re: INSTALL_PATH ignored in XCode

2010-09-13 Thread Kyle Sluder
Your question is more appropriate for the xcode-users list. You might have better luck asking there. --Kyle Sluder On Mon, Sep 13, 2010 at 3:34 AM, Daniele cocoa-...@malcom-mac.com wrote: Hello guys, I'm making a plugin extensible application with bundles. Now, when I compile each bundle I

Re: Viewing a single NSTextStorage with two sets of attributes

2010-09-13 Thread Aki Inoue
Andrew, I usually recommend subclassing NSTextStorage returning different attributes based on a property/flag. The tricky part is (as you might already encountered) to make sure setting up the property at the right moment. In normal operations, the Text System queries the attributes roughly in

Re: Is kCAOnOrderOut too good to be true?

2010-09-13 Thread Matt Neuburg
David Duncan said on Mar 09 2010 at 21:13: Unfortunately the answer is that this is a bug without a clear solution (in the removal case). Your best bet is to hide the layer, then remove it after the animation has completed rather than to remove it directly. Unfortunately this seems not to

Re: Timing of UI events

2010-09-13 Thread Matt Neuburg
On Mon, 13 Sep 2010 11:56:51 -0400, Andrew Coad andrewc...@hotmail.com said: I can see that UIEvent has a timestamp of type NSInterval which has sub-millisecond resolution. Should I use this? What is the relationship between this timestamp and mach_absolute_time()? Any better ways to do this? The

Testing Harness, or a/b testing scenario, and sending logs back to developer

2010-09-13 Thread Anna Billstrom
Hi, Since last posting, I've done some more research. Has anyone used MixPanel for testing? The goal I'm looking for is getting touchevents, and feature usage, sent back to the apple developer so that we can do true a/b testing on user interface elemetns. Similar to web analytics, we can test

Re: web-based Cocoa dev docs inaccessible

2010-09-13 Thread Jeffrey Oleander
On Mon, 2010/09/13, Andy Lee ag...@mac.com wrote: From: Andy Lee ag...@mac.com Subject: Re: web-based Cocoa dev docs inaccessible To: Jeffrey Oleander jgo...@yahoo.com Cc: cocoa-dev@lists.apple.com Date: Monday, 2010 September 13, 2:01 On 2010 Sep 12, at 6:32 PM, Jeffrey Oleander wrote:

Core Data Migration : Splitting an Entity : Source Fetch ?

2010-09-13 Thread Jerry Krinock
I'm preparing a Core Data mapping model using the GUI in Xcode. In the old model, I had, say, an Animal entity. In the new model, I am replacing Animal with two new entities, Bird and Fish. I can distinguish Birds from Fish because birds have a beak but fish do not. The old Animal entity

Interpreting a Crash Log

2010-09-13 Thread koko
As I understand the entries below from a crash log my app crashed in objc_msgSend which was called from the method changeAColor:newColor in the class BMatrix, 1499 bytes into the method. How do I find the offending line in the source from this information? -koko 0 libobjc.A.dylib

Re: Interpreting a Crash Log

2010-09-13 Thread Jerry Krinock
On 2010 Sep 13, at 16:15, k...@highrolls.net wrote: As I understand the entries below from a crash log my app crashed in objc_msgSend which was called from the method changeAColor:newColor in the class BMatrix, 1499 bytes into the method. How do I find the offending line in the source

CALayers - printing and flippedness

2010-09-13 Thread Gideon King
HI, I'm just getting started with some core animation work, and have run into a couple of issues pretty much straight away. The first is that I am trying to make sure that I will be able to print what I have on my view, but this doesn't seem to be working. I tried creating a layer backed

Re: Interpreting a Crash Log

2010-09-13 Thread Wim Lewis
On Sep 13, 2010, at 4:15 PM, k...@highrolls.net wrote: As I understand the entries below from a crash log my app crashed in objc_msgSend which was called from the method changeAColor:newColor in the class BMatrix, 1499 bytes into the method. How do I find the offending line in the source

iOS Popup Menus?

2010-09-13 Thread Philip Mobley
How do you create the popup (and scrollable) contextual style menus that are in Safari's when you click the Bookmark / History button? I can't find a prebuilt class in the UIKit that uses that specific behavior, and find it amazing that there isn't one available. At this point, I am guessing

Re: iOS Popup Menus?

2010-09-13 Thread Dave DeLong
How about a UITableViewController that's presented modally using -presentModalViewController:animated:? Dave On Sep 13, 2010, at 8:37 PM, Philip Mobley wrote: How do you create the popup (and scrollable) contextual style menus that are in Safari's when you click the Bookmark / History

Re: iOS Popup Menus?

2010-09-13 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 9/13/10 7:37 PM, Philip Mobley wrote: How do you create the popup (and scrollable) contextual style menus that are in Safari's when you click the Bookmark / History button? I can't find a prebuilt class in the UIKit that uses that specific

over-released NSIdEnumerator

2010-09-13 Thread Jeffrey Oleander
After my main NSDocument algorithm method was done doing its thing and returned up the call chain to where the button click had started its action, it would flip to showing NSPopAutoreleasePool and I was crashing with EXC_BAD_ACCESS. So, I looked at all of my alloc, initWith..., retain, and

Re: Unix Signals Delivered from Quitting Cocoa Apps?

2010-09-13 Thread aaron smith
I finished this if anyone's interested. it's all controlled by the Info.plist file now. And you don't need an arbitrary argument to notify the child that it should only run the app. The child only uses execvp so there's no high-leve api used. http://pastebin.com/1pH8dxuM On Mon, Sep 13, 2010

Re: over-released NSIdEnumerator

2010-09-13 Thread Quincey Morris
On Sep 13, 2010, at 20:34, Jeffrey Oleander wrote: After my main NSDocument algorithm method was done doing its thing and returned up the call chain to where the button click had started its action, it would flip to showing NSPopAutoreleasePool and I was crashing with EXC_BAD_ACCESS. So,