CALayer shadow and animation

2008-12-17 Thread Fabrizio Guglielmino
Hi all, I'm working with iPhone SDK 2.1, trying to make some simple effects on layers I can't found the properties for the shadow (shadowOffset, shadowColor), are they not avaiable on iPhone? Is there some alternative to make a layer shadow (excluding making it by hand)? There is also an other

Re: How to make a CALayer dont get blur when rotating.

2008-12-17 Thread Gustavo Pizano
Have you tried to rotate your layer in a simple test application? No I will have to check that. Have you tried to use another image? yes, same results Well, Im just doing a transformation on Z axis, thats all. I will try in a test app, but I don't know if it will work, the only superlayer

Re: UNIX signals

2008-12-17 Thread Ken Thomases
On Dec 16, 2008, at 9:22 PM, Michael Ash wrote: On Tue, Dec 16, 2008 at 8:02 PM, Chris Idou wrote: Is there any Cocoa and/or Carbon interface to UNIX signals? Nope. It's pretty easy to set up a signal handler that can call back to a Cocoa/CoreFoundation runloop though, by having it write to

Re: Sublclassing NSThread

2008-12-17 Thread Jean-Daniel Dupas
Le 17 déc. 08 à 04:27, Michael Ash a écrit : On Tue, Dec 16, 2008 at 5:19 PM, Bradley S. O'Hearne wrote: All, Thanks to everyone for the replies. In my code, I made an error -- overrode the start method rather than the main method. After I overrode the start method, everything worked gre

Saving NSImage with compression

2008-12-17 Thread Antonio Nunes
Hi, I create NSImages by loading graphics from disk. I then want to write those images back out to disk, but that can result in ballooning file sizes. For instance, I may load a JPG image that is less than 800K on disk. When I write the image back out though (with the likes of [coder enco

Re: Sublclassing NSThread

2008-12-17 Thread Jean-Daniel Dupas
Le 17 déc. 08 à 16:29, Michael Ash a écrit : On Wed, Dec 17, 2008 at 4:49 AM, Jean-Daniel Dupas wrote: Le 17 déc. 08 à 10:32, Jean-Daniel Dupas a écrit : And before you go off using NSOperationQueue, you should be aware that it's broken on Leopard, as described in this thread: http://w

Re: Sublclassing NSThread

2008-12-17 Thread Robert Marini
There are a great many more bugs than what Mike described in the previous thread relating to NSOperationQueue - it leaks Mach Ports under GC, it occasionally will retain an operation object if you cancel before starting it, it will sometimes dealloc an operation object without updating fini

Re: More - Safari Download Security Alerts

2008-12-17 Thread Dave
On 17 Dec 2008, at 15:25, Graham Lee wrote: Hi Dave, On 17/12/2008 15:19, "Dave" wrote: 2. When I run the Install Package after the Initial Screen and clicking "Continue", I get to the Screen where is says - Standard Install on "VolumeName", there is a button that says "Change Install Loc

Re: More - Safari Download Security Alerts

2008-12-17 Thread Jeremy Pereira
On 17 Dec 2008, at 15:27, Dave wrote: On 17 Dec 2008, at 12:03, Jeremy Pereira wrote: On 17 Dec 2008, at 11:28, Dave wrote: Hi Mark, Thanks a lot, it certainly is a lot easier to use and a lot less flakey, but it still doesn't work. It does not create a folder in "/Applications" it j

NSTimer help

2008-12-17 Thread Eric Lee
I have an application, and when I exit the window, the timer doesn't stop, so the application freezes. Is there something similar to -(void)awakeFromNib but for stopping a timer when a window closes? Thanks ___ Cocoa-dev mailing list (Cocoa-dev@l

Re: Sublclassing NSThread

2008-12-17 Thread Frédéric Testuz
Le 17 déc. 08 à 17:14, Keith Duncan a écrit : On 17 Dec 2008, at 15:41, Jean-Daniel Dupas wrote: because there's absolutely no way to guarantee that only a single NSOperationQueue exists in your process Couldn't you swizzle +[NSOperationQueue alloc] to return a singleton? Sure it's a h

Re: NSTimer help

2008-12-17 Thread Randall Meadows
On Dec 17, 2008, at 10:23 AM, Eric Lee wrote: I have an application, and when I exit the window, the timer doesn't stop, so the application freezes. Is there something similar to -(void)awakeFromNib but for stopping a timer when a window closes? You can register any object to listen for

Re: Sublclassing NSThread

2008-12-17 Thread Michael Ash
On Wed, Dec 17, 2008 at 11:14 AM, Keith Duncan wrote: > > On 17 Dec 2008, at 15:41, Jean-Daniel Dupas wrote: > >>> because there's absolutely no way to guarantee that only a single >>> NSOperationQueue >>> exists in your process > > Couldn't you swizzle +[NSOperationQueue alloc] to return a single

Re: Get notified of fullscreen switch

2008-12-17 Thread Eric Schlegel
On Dec 17, 2008, at 9:26 AM, Joachim Deelen wrote: Is there a way, that my application (Playwatch), which is an iTunes Controller running in the menu bar, gets notified, when another Application, like DVD-Player, switches to full screen (kiosk) mode? At the moment, the recommended way to d

Re: More - Safari Download Security Alerts

2008-12-17 Thread Dave
On 17 Dec 2008, at 17:00, Jeremy Pereira wrote: On 17 Dec 2008, at 15:27, Dave wrote: On 17 Dec 2008, at 12:03, Jeremy Pereira wrote: On 17 Dec 2008, at 11:28, Dave wrote: Hi Mark, Thanks a lot, it certainly is a lot easier to use and a lot less flakey, but it still doesn't work. It

Re: CALayer shadow and animation

2008-12-17 Thread David Duncan
On Dec 17, 2008, at 12:39 AM, Fabrizio Guglielmino wrote: I'm working with iPhone SDK 2.1, trying to make some simple effects on layers I can't found the properties for the shadow (shadowOffset, shadowColor), are they not avaiable on iPhone? Is there some alternative to make a layer shadow (

Re: Sublclassing NSThread

2008-12-17 Thread Jean-Daniel Dupas
Le 17 déc. 08 à 10:32, Jean-Daniel Dupas a écrit : And before you go off using NSOperationQueue, you should be aware that it's broken on Leopard, as described in this thread: http://www.cocoabuilder.com/archive/message/cocoa/2008/10/30/221452 We already discuss this issues, and I agree

getObjects:andKeys

2008-12-17 Thread Jordon Hirshon
Can someone tell me where I might see an example of this method? Thanks, Jordon ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-

Re: getObjects:andKeys

2008-12-17 Thread Keary Suska
On Dec 17, 2008, at 6:36 AM, Jordon Hirshon wrote: Can someone tell me where I might see an example of this method? I don't know of any specific example. Perhaps if you explain what about the method call you aren't clear on and we can offer explanations. Best, Keary Suska Esoteritech, In

Re: Background color of disclosure triangle row

2008-12-17 Thread Nate Weaver
See the -outlineView:isGroupItem: delegate method. On Dec 17, 2008, at 11:30 AM, Eric Gorr wrote: This should be an easy one, but I am just not seeing it... In the sample code found at: http://developer.apple.com/samplecode/PhotoSearch/index.html The background color of the rows containing t

Re: More - Safari Download Security Alerts

2008-12-17 Thread Jean-Daniel Dupas
Le 17 déc. 08 à 16:19, Dave a écrit : Hi Matt, Thanks so much for this. I was using PM version 3.0.2, I hadn't realized that there was a new version of XCode available, for some reason I thought it would auto-magically detect a new version and offer to update itself. Anyway I downloaded

how to separate the path name from a file name

2008-12-17 Thread wamozart
Hi, I'm writing an NSDocument class code. I would like to separate the path name from a file name. NSString *filename = [self fileName]; returns the full path and file name. How do I get the path name only? Thanks. ___ Cocoa-dev mailing list (Cocoa-dev@

The Ages Old __MyCompanyName__ Question

2008-12-17 Thread Phil Hystad
OK, I am fairly new to Xcode and Cocoa programming and I want to change the __MyCompanyName__ template macro definition. So, I google this question, find answers, and try it out. It did not work. So, is there something different in today's Xcode that means the procedure for changing __MyC

Re: how to separate the path name from a file name

2008-12-17 Thread Nick Zitzmann
On Dec 17, 2008, at 8:52 PM, wamozart wrote: Hi, I'm writing an NSDocument class code. I would like to separate the path name from a file name. NSString *filename = [self fileName]; returns the full path and file name. How do I get the path name only? -stringByDeletingLastPathComponent.

Re: Background color of disclosure triangle row

2008-12-17 Thread Eric Gorr
Excellent. Thank you. Don't think I would have found that anytime soon. I was surprised to find that isGroupItem is not mentioned in the NSOutlineView guide. The other thing I noticed is that the PhotoSearch sample application has the disclosure triangle and it's text drawn in white to bett

Re: The Ages Old __MyCompanyName__ Question

2008-12-17 Thread Joseph Crawford
see this page http://www.mac-developer-network.com/podcasts/xcodequicktips/episode6/index.html On Dec 17, 2008, at 11:32 AM, Phil Hystad wrote: OK, I am fairly new to Xcode and Cocoa programming and I want to change the __MyCompanyName__ template macro definition. So, I google this question,

Re: More - Safari Download Security Alerts

2008-12-17 Thread Jeremy Pereira
On 17 Dec 2008, at 11:28, Dave wrote: Hi Mark, Thanks a lot, it certainly is a lot easier to use and a lot less flakey, but it still doesn't work. It does not create a folder in "/ Applications" it just installs the raw files there instead. I'm giving up on PackageMaker, it just doesn't w

Re: how to separate the path name from a file name

2008-12-17 Thread Jason Foreman
On Wed, Dec 17, 2008 at 5:52 AM, wamozart wrote: > Hi, I'm writing an NSDocument class code. I would like to separate the path > name from a file name. > NSString *filename = [self fileName]; > > returns the full path and file name. How do I get the path name only? See this section of the NSStrin

Re: NSTimer help

2008-12-17 Thread Ken Thomases
On Dec 17, 2008, at 11:23 AM, Eric Lee wrote: I have an application, and when I exit the window, the timer doesn't stop, so the application freezes. That's very unclear. What do you mean by "exit" a window? "The timer"? Which timer? Why would you expect a timer to stop when you exit (

Re: The Ages Old __MyCompanyName__ Question

2008-12-17 Thread Randall Meadows
On Dec 17, 2008, at 9:32 AM, Phil Hystad wrote: OK, I am fairly new to Xcode and Cocoa programming and I want to change the __MyCompanyName__ template macro definition. So, I google this question, find answers, and try it out. It did not work. So, is there something different in today's X

Re: UNIX signals

2008-12-17 Thread Greg Parker
On Dec 17, 2008, at 8:20 AM, Keary Suska wrote: On Dec 16, 2008, at 8:27 PM, Jonathan Prescott wrote: For everything else other than Cocoa and Carbon applications that receive AppleEvents, when the computer is shutdown, everything else is sent a SIGKILL by launchd, just like any other Unix sy

Re: The Ages Old __MyCompanyName__ Question

2008-12-17 Thread I. Savant
On Wed, Dec 17, 2008 at 11:32 AM, Phil Hystad wrote: > OK, I am fairly new to Xcode and Cocoa programming and I want to change the > __MyCompanyName__ template macro definition. ... > The procedure I tried was to set ORGANIZATIONNAME in the > PBXCustomTemplateMacroDefinitions key of the Xcode plis

Image ToolTips in TableView revisited

2008-12-17 Thread rajesh
Hi all, I was trying to display the image tool tip for few columns in the NSOutLineView Luckily my deployment target is 10.5+ This is what I did in my custom cell class - (NSRect)expansionFrameWithFrame:(NSRect)cellFrame inView:(NSView *)view { NSRect rect = [self calulateRectProportion

Re: how to separate the path name from a file name

2008-12-17 Thread Kiel Gillard
Hi there, Not too sure what you mean by "path name", but the API you'll want to look at could be here . Kiel :-) "Violence is the last refug

automatic table scrolling when nsarraycontroller selection changes

2008-12-17 Thread Matt Neuburg
My app is very simple and involves an NSTableView of one column bound to an array controller. The app runs both on Tiger and Leopard. On Tiger, when my code changes the array controller selection (e.g. add: or setSelectionIndex:), the table scrolls so that the selection shows. On Leopard, it doesn'

Re: UNIX signals

2008-12-17 Thread Greg Parker
On Dec 16, 2008, at 7:22 PM, Michael Ash wrote: On Tue, Dec 16, 2008 at 8:02 PM, Chris Idou wrote: Is there any Cocoa and/or Carbon interface to UNIX signals? Nope. It's pretty easy to set up a signal handler that can call back to a Cocoa/CoreFoundation runloop though, by having it write to a

Re: Thread ID in crash log

2008-12-17 Thread Darren Adkinson
Hello List, I've been googling and searching for this but to no joy. How do you get a thread ID of the current thread that will be similar with the one that shows up on a crash log? This is pretty helpful for debugging multi-threaded applications. Thanks, Radj Hi Radj, Check out Crash

Background color of disclosure triangle row

2008-12-17 Thread Eric Gorr
This should be an easy one, but I am just not seeing it... In the sample code found at: http://developer.apple.com/samplecode/PhotoSearch/index.html The background color of the rows containing the disclosure triangles are drawn with a gray background. How was that gray color provided and dr

Re: Sublclassing NSThread

2008-12-17 Thread Keith Duncan
On 17 Dec 2008, at 15:41, Jean-Daniel Dupas wrote: because there's absolutely no way to guarantee that only a single NSOperationQueue exists in your process Couldn't you swizzle +[NSOperationQueue alloc] to return a singleton? Sure it's a hack, but a simple one that can be #ifdefed out fo

RE: automatic table scrolling when nsarraycontroller selection changes

2008-12-17 Thread Rajendran_Pichaimurthy
[tableviewoutlet scrollRowToVisible:yourselectedrow] should solve your problem -Original Message- From: cocoa-dev-bounces+rajendran_pichaimurthy=mcafee@lists.apple.com [mailto:cocoa-dev-bounces+rajendran_pichaimurthy=mcafee@lists.apple. com] On Behalf Of Matt Neuburg Sent: Thursday

splash screen how to?

2008-12-17 Thread Nick Rogers
Hi, I have to show a splash screen at the software launch. The window should have no edges etc and should stay for a few seconds. How to go about it? Is there any good resource available for this? Thanks, Nick ___ Cocoa-dev mailing list (Cocoa-dev@list

Re: More - Safari Download Security Alerts

2008-12-17 Thread Dave
On 17 Dec 2008, at 15:29, Jean-Daniel Dupas wrote: Le 17 déc. 08 à 16:19, Dave a écrit : Hi Matt, Thanks so much for this. I was using PM version 3.0.2, I hadn't realized that there was a new version of XCode available, for some reason I thought it would auto-magically detect a new vers

Re: More - Safari Download Security Alerts

2008-12-17 Thread Dave
Hi Matt, Thanks so much for this. I was using PM version 3.0.2, I hadn't realized that there was a new version of XCode available, for some reason I thought it would auto-magically detect a new version and offer to update itself. Anyway I downloaded the latest and installed it, so I now h

Re: The Ages Old __MyCompanyName__ Question

2008-12-17 Thread Sherm Pendley
On Dec 17, 2008, at 11:32 AM, Phil Hystad wrote: So, How do you change __MyCompanyName__? The latest Xcode uses Address Book, so you can simply edit your own card and add a company name. sherm-- ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

Validation of a Custom View NSToolbarItem

2008-12-17 Thread Carmen Cerino Jr.
I understand I need to have a NSToolbarItem subclass and override its validate method, but who is responsible for calling it? Will NSToolbar call it during its validation routine or do I need to come up with my own validation routine? Cheers, Carmen ___

Re: More - Safari Download Security Alerts

2008-12-17 Thread Kyle Sluder
On Wed, Dec 17, 2008 at 1:18 PM, Dave wrote: > So I can now ship both and let them decide which they want. I reckon they > will go for the AppleScript version, it's so much easier and quicker. I just > timed it, from opening the Script to the app launching is about 10 seconds. > By the time the us

Core Data Basic Model Problem ...

2008-12-17 Thread vince
Thanks for the help. I've built a basic Core Data doc based application with two tables and and a search box. So table one at the left has one column that includes "categories", and table two includes associated, searchable data. Two array controllers with relationships defined in the data model.,

Re: More - Safari Download Security Alerts

2008-12-17 Thread Dave
Hi Mark, Thanks a lot, it certainly is a lot easier to use and a lot less flakey, but it still doesn't work. It does not create a folder in "/ Applications" it just installs the raw files there instead. I'm giving up on PackageMaker, it just doesn't work and there doesn't seem to be any su

Re: More - Safari Download Security Alerts

2008-12-17 Thread Matt Gough
On 17 Dec 2008, at 12:28, Dave wrote: Thanks a lot, it certainly is a lot easier to use and a lot less flakey, but it still doesn't work. It does not create a folder in "/ Applications" it just installs the raw files there instead. I'm giving up on PackageMaker, it just doesn't work and the

Get notified of fullscreen switch

2008-12-17 Thread Joachim Deelen
Hi, I've searched the Internet and the Apple Documentations for almost a day now, but can't find the right thing. Is there a way, that my application (Playwatch), which is an iTunes Controller running in the menu bar, gets notified, when another Application, like DVD-Player, switches to f

Re: More - Safari Download Security Alerts

2008-12-17 Thread Graham Lee
Hi Dave, On 17/12/2008 15:19, "Dave" wrote: > > 2. When I run the Install Package after the Initial Screen and > clicking "Continue", I get to the Screen where is says - Standard > Install on "VolumeName", there is a button that says "Change Install > Location", if I press it brings up a list o

Re: UNIX signals

2008-12-17 Thread jonat...@mugginsoft.com
On 17 Dec 2008, at 03:22, Michael Ash wrote: On Tue, Dec 16, 2008 at 8:02 PM, Chris Idou wrote: Is there any Cocoa and/or Carbon interface to UNIX signals? Nope. Yes. For a Cocoa solution see MessagingSignalHandler available at http://www.fivesquaresoftware.com/source/ This schedules an

Re: More - Safari Download Security Alerts

2008-12-17 Thread Dave
On 17 Dec 2008, at 12:03, Jeremy Pereira wrote: On 17 Dec 2008, at 11:28, Dave wrote: Hi Mark, Thanks a lot, it certainly is a lot easier to use and a lot less flakey, but it still doesn't work. It does not create a folder in "/Applications" it just installs the raw files there instead.

Re: UNIX signals

2008-12-17 Thread Keary Suska
On Dec 16, 2008, at 8:27 PM, Jonathan Prescott wrote: For everything else other than Cocoa and Carbon applications that receive AppleEvents, when the computer is shutdown, everything else is sent a SIGKILL by launchd, just like any other Unix system (launchd takes the place of the init dae

Re: Sublclassing NSThread

2008-12-17 Thread Michael Ash
On Wed, Dec 17, 2008 at 4:49 AM, Jean-Daniel Dupas wrote: > > Le 17 déc. 08 à 10:32, Jean-Daniel Dupas a écrit : > > And before you go off using NSOperationQueue, you should be aware that > > it's broken on Leopard, as described in this thread: > > http://www.cocoabuilder.com/archive/message/cocoa

Disabling hittest

2008-12-17 Thread Fabrizio Guglielmino
Hi all, I'd like to known if is there a method to disable hittest on a layer (escluding it to be returned). I have 3 layers, my application permits to take one layer and drag around the window (it's an iPhone application), I need to known if there is a layer under the dragged one. Using hitTest met

Re: More - Safari Download Security Alerts

2008-12-17 Thread Dave
On 17 Dec 2008, at 20:17, Kyle Sluder wrote: On Wed, Dec 17, 2008 at 1:18 PM, Dave wrote: So I can now ship both and let them decide which they want. I reckon they will go for the AppleScript version, it's so much easier and quicker. I just timed it, from opening the Script to the app laun

Re: NSTimer help

2008-12-17 Thread Eric Lee
Begin forwarded message: From: Eric Lee Date: December 17, 2008 3:02:40 PM CST To: Ken Thomases Subject: Re: NSTimer help Thanks...i hadn't realized there was a - (void)windowShouldClose..but now I have another problem. I have implemented an if/else statement so that I can determine if

keychain -- "Changed software confirmation dialog"

2008-12-17 Thread Andy Lee
There are a couple of dialogs that automatically come up when an app tries to access the keychain. One of them is the "Changed software confirmation dialog" shown in Figure 1-3 here with Transmit as the example app:

Re: NSTimer help

2008-12-17 Thread Volker in Lists
Hi Eric, - (BOOL)windowShouldClose:(id)window is the correct implementation with the method name implicating a question that is answered either YES or NO. Your method in its current form is not called, which you could have easily worked out using a single NSLog(@"I do work sometimes"); wi

problem with calendarstore framework when using it with Quicklite API for SQlite.

2008-12-17 Thread Vijay Kanse
Hello, I am using quicklite API. And I included Framework Calendarstore. when I am running my program I got following Log in console and I am not able to run my application. Class QuickLiteCursor is implemented in both /System/Library/PrivateFrameworks/WhitePages.framework/Versions/A/WhitePages an

Re: automatic table scrolling when nsarraycontroller selection changes

2008-12-17 Thread Matt Neuburg
On or about 12/17/08 11:40 AM, thus spake "rajendran_pichaimur...@mcafee.com" : > [tableviewoutlet scrollRowToVisible:yourselectedrow] should solve your > problem Obviously, but that is exactly what I don't want to have to do. It is quite wrong to have to target the view in response to a change i

Re: splash screen how to?

2008-12-17 Thread Volker in Lists
Hi Nick, search for BorderlessWindow in general or narrow down your search to CoriolisWindow or even better FancyAbout supplied by Apple. Sorry for not including the links directly, but I have both examples on my disk and was far too lazy to type them into Google. Which is another good th

Re: NSTimer help

2008-12-17 Thread Eric Lee
Begin forwarded message: From: Eric Lee Date: December 17, 2008 3:18:41 PM CST To: Volker in Lists Subject: Re: NSTimer help Ah...thanks I had first started out with -(void)windowWillClose..and I guess I just forgot to change it.. Also, instead of [mainWindow windowShouldClose:NO/YES];

Re: NSTimer help

2008-12-17 Thread Ken Thomases
On Dec 17, 2008, at 3:02 PM, Eric Lee wrote: Thanks...i hadn't realized there was a - (void)windowShouldClose..but now I have another problem. Well, there isn't. There's a -(BOOL)windowShouldClose:. Note the return type. Also note that -windowShouldClose: is invoked by -performClose: bu

Re: getObjects:andKeys

2008-12-17 Thread Kyle Sluder
On Wed, Dec 17, 2008 at 8:36 AM, Jordon Hirshon wrote: > Can someone tell me where I might see an example of this method? If you don't understand what's going on in this example, I'd suggest getting a copy of The C Programming Language (2nd Ed.) by Kernighan and Ritchie. // warning: written in t

Re: More - Safari Download Security Alerts

2008-12-17 Thread Jean-Daniel Dupas
Le 17 déc. 08 à 16:40, Dave a écrit : On 17 Dec 2008, at 15:29, Jean-Daniel Dupas wrote: Le 17 déc. 08 à 16:19, Dave a écrit : Hi Matt, Thanks so much for this. I was using PM version 3.0.2, I hadn't realized that there was a new version of XCode available, for some reason I thought

Fwd: keychain -- "Changed software confirmation dialog"

2008-12-17 Thread jonathan
"The application firewall uses digital signatures to verify the identity of applications. If you select an unsigned application, Mac OS X v10.5 signs that application to uniquely identify it." I think that OS X will generate a code signature for any app that is not already signed when it ac

Re: NSTimer help

2008-12-17 Thread Andrew Farmer
On 17 Dec 08, at 13:22, Ken Thomases wrote: if ([[textField stringValue] isEqualTo: @"0:00:00" || @"0.0" ]) { What's up with the above line? First, you should be careful about which isEqual... method you use. -isEqual: is a generic method for comparing any two objects. Since you kn

Re: keychain -- "Changed software confirmation dialog"

2008-12-17 Thread Andy Lee
Thanks, Jonathan. I actually did try tweaking the bundle version and did get a keychain dialog, but I didn't think it was the one I wanted. Looking more closely, I think I *was* generating the dialog I wanted; I think it's just that the wording and the button titles have changed since tha

garbage collection memory leak

2008-12-17 Thread Michael Link
I'm trying to track down a memory leak even though I'm using garbage collection. I was curious what the "rc:" field means when using "info gc-roots" in gdb? It doesn't seem to correlate to the Retain Count when inspecting an address in Instruments and it doesn't seem to always correlate to

Re: Thread ID in crash log

2008-12-17 Thread radj
> > Check out CrashReporter Technical Note TN2123 (google "TN2123") - the > advice there (~p.8) is to look at the symbolic names within the backtrace in > order to identify which thread is which. Woops. Looks like I wasn't stating what I needed clearly. Yes, looking at the stack trace can help

Menu & System Preference keyboard shortcuts weirdness.

2008-12-17 Thread Keith Blount
Hello, A user has just pointed out a very strange situation in my program concerning keyboard shortcuts that I have been unable to fathom, so I was wondering if anyone here might have seen something like it before or have an idea as to what might cause it. The strangeness is that this doesn't s

Re: Thread ID in crash log

2008-12-17 Thread Greg Parker
On Dec 17, 2008, at 4:22 PM, radj wrote: Yes, looking at the stack trace can help me identify which is which but what if the threads all look the same? ex: I've launched several threads of the same method. But that's another question. What I needed is: I have my own debug log, my program wri

Re: Thread ID in crash log

2008-12-17 Thread radj
> The crash log's thread ID is not fixed. If you run ten helper threads and > nine of them exit before you crash, the surviving helper thread will always > be "Thread 1" in the crash log. Any scheme that tries to predict the crash > log's thread ID will be unreliable - a thread could always be crea

Sorting a bound NSTableView programatically

2008-12-17 Thread Jean-Nicolas Jolivet
I'm pretty sure this one is obvious but I'm just spinning around in circles in the docs here and I can't seem to find out how to do it... I have a basic NSTableView binding setup in place (NSTableView's columns bound to an NSArrayController, which is bound to an NSMutableArray ...) I'm tr

Re: Sorting a bound NSTableView programatically

2008-12-17 Thread Kiel Gillard
Have you tired [arrayController rearrangeObjects]? You may need to ensure that the sort descriptors of the

Re: Sorting a bound NSTableView programatically

2008-12-17 Thread Ken Thomases
On Dec 17, 2008, at 8:53 PM, Jean-Nicolas Jolivet wrote: What I need to do then, is to sort my tableview by FirstName automatically and then disable sorting altogether When you bind the columns of a table, there's an implicit binding of three bindings on the table itself: content, selec

Re: UNIX signals

2008-12-17 Thread Michael Ash
On Wed, Dec 17, 2008 at 2:32 PM, Greg Parker wrote: > On Dec 16, 2008, at 7:22 PM, Michael Ash wrote: >> >> On Tue, Dec 16, 2008 at 8:02 PM, Chris Idou wrote: >>> >>> Is there any Cocoa and/or Carbon interface to UNIX signals? >> >> Nope. It's pretty easy to set up a signal handler that can call

Re: Thread ID in crash log

2008-12-17 Thread Dave Dribin
On Dec 17, 2008, at 7:37 PM, radj wrote: I see. I'm not trying to be ungrateful (because I really am, thanks for the code), but calling CrashLogThreadID(pthread_t) might be too costly for every call to my custom debugLog(...) because there are alot all over the code (not the best practice,

Re: NSTimer help

2008-12-17 Thread Michael Ash
On Wed, Dec 17, 2008 at 4:05 PM, Eric Lee wrote: > > > Begin forwarded message: > >> From: Eric Lee >> Date: December 17, 2008 3:02:40 PM CST >> To: Ken Thomases >> Subject: Re: NSTimer help >> >> Thanks...i hadn't realized there was a -(void)windowShouldClose..but now >> I have another problem

Re: Thread ID in crash log

2008-12-17 Thread Greg Parker
On Dec 17, 2008, at 8:03 PM, Dave Dribin wrote: On Dec 17, 2008, at 7:37 PM, radj wrote: I see. I'm not trying to be ungrateful (because I really am, thanks for the code), but calling CrashLogThreadID(pthread_t) might be too costly for every call to my custom debugLog(...) because there are a

Re: Thread ID in crash log

2008-12-17 Thread Dave Dribin
On Dec 17, 2008, at 10:11 PM, Greg Parker wrote: Of course, if the number of threads changes then that cached thread ID may not match the crash log anymore. (And the number of threads in your process may change due to code outside your control.) Ah, right. Never mind. :) -Dave ___

Two-fingered rotate gesture

2008-12-17 Thread Gary L. Wade
Here's a suggestion that I just thought about that I'd like to pass on to everyone for their apps. I don't have much time to research it or try it out for myself (I'm bogged down with too much legacy "fun" right now), and since we have quite a few people on the list, maybe a good number might take

Re: NSTimer help

2008-12-17 Thread Andrew Merenbach
On Dec 17, 2008, at 8:03 PM, Michael Ash wrote: - (void)windowShouldClose:(id)window { if ([[textField stringValue] isEqualTo: @"0:00:00" || @"0.0" ]) One on the above line: warning: passing argument 1 of 'isEqualTo:' makes pointer from integer without a cast Please accept my p

Re: Sorting a bound NSTableView programatically

2008-12-17 Thread Jean-Nicolas Jolivet
Thanks to both of you for the advices! Lastly, you can treat the ordering not as a view property but as a model property. You would sort the array in your model, probably just after reading it in. This made sense hehe not sure why I didn't think of it... basically I decided to load the d

Re: Pressable Button

2008-12-17 Thread Gerriet M. Denkmann
Following Peters advice: Consider using a single-segment NSSegmentedControl. It has this behavior built-in. I am not completely satisfied: I want the NSOnState shown as done in an NSButton with buttonType = NSOnOffButton and bezelStyle = NSTexturedSquareBezelStyle. In the header file I

Re: Thread ID in crash log

2008-12-17 Thread Scott Ribe
> calling CrashLogThreadID(pthread_t) might be too costly for every > call to my custom debugLog(...) I've done it that way when debugging threads. It doesn't take long; none of the calls take very long, especially when compared to what goes on when writing to a log anyway. Do note though that wr

Core Animation glitch

2008-12-17 Thread Randall Meadows
OK, not a good subject line, but I couldn't come up with anything more descriptive. I hope I can explain the issue clear enough...I'm a fair Core Animation newbie... (I know this is long, sorry, but if nothing else, watch the video linked at the end, and see if that rings any bells.) I

Re: Thread ID in crash log

2008-12-17 Thread radj
> I've done it that way when debugging threads. It doesn't take long; none of > the calls take very long, But there's still a difference, right? And when called or passed through alot, that small difference can become really big. > especially when compared to what goes on when > writing to a log

Override a UTI?

2008-12-17 Thread Matthias Arndt
Sorry for picking up an old topic, but I'm not sure to have the latest information: My application is able to deal with Melco's embroidery files. The only way to identify these files is their extension ".exp", unfortunately claimed by the system-declared UTI for "com.apple.symbol-export".