borderless button - hilight on click

2010-10-31 Thread Mitchell Livingston
I'm trying to mimic iTunes 10 and iPhoto '11's buttons on the bottom of the window, where it's a simple black image that can be toggled to an on state (blue). I have that working using a template image (it's just black and is automatically made blue when enabled), but when I click and hold the

Re: borderless button - hilight on click

2010-10-31 Thread Mitchell Livingston
. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/ Logiciels Nemesys Software laur...@nemesys-soft.com On Oct 31, 2010, at 11:49, Mitchell Livingston wrote: I'm trying to mimic iTunes

question on speed and memory display on 10.6.

2010-09-12 Thread Mitchell Livingston
In 10.6 the display of disk space was changed from base-2 to base-10, as discussed in http://support.apple.com/kb/TS2419. For download rates (KB/sec), is that also in base-10 on 10.6? Also, in what base is the display of the amount of system memory?

close sheet with app hidden

2010-02-04 Thread Mitchell Livingston
I have a sheet that shows a progress bar for a file being downloaded. It closes automatically, with no problems. The issue is, if I hide the app the sheet does not disappear - instead, it stays open. This only happens when the app is hidden. The code to close it is: [NSApp endSheet:

Re: using QLPreviewPanel and supporting 10.5

2009-10-10 Thread Mitchell Livingston
How would that work with storing the instance variables? Thanks, Mitch On Saturday, October 10, 2009, at 05:30AM, Julien Jalon jja...@gmail.com wrote: ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: using QLPreviewPanel and supporting 10.5

2009-10-10 Thread Mitchell Livingston
On Saturday, October 10, 2009, at 12:18PM, Kyle Sluder kyle.slu...@gmail.com wrote: On Oct 10, 2009, at 5:40 AM, Mitchell Livingston livings...@mac.com wrote: How would that work with storing the instance variables? 1) Why are you concerned with QLPreviewPanel's instance variables

using QLPreviewPanel and supporting 10.5

2009-10-09 Thread Mitchell Livingston
Hello, I want to support Quick Look in my application, but still support 10.5. I'm using the 10.6 SDK and 10.5 deployment target. Launching on 10.5 gives: Dyld Error Message: Symbol not found: _OBJC_CLASS_$_QLPreviewPanel Referenced from:

favicon of address

2009-09-20 Thread Mitchell Livingston
Hey, I want to get the favicon of a URL address, but don't actually need any of the page's content. Is there an efficient way to do this besides hammering the site for this info? This image isn't critical, so something that works most of the time should be fine. Thanks, Mitch

NSDivideRect and 64-bit

2009-09-06 Thread Mitchell Livingston
Hey, I want to use NSDivideRect in my app, but the documentation for NSRectEdge (one of the parameter types) says Not available to 64-bit applications.. Can I not use this function anymore? Is there an appropriate replacement for the function? Thanks, Mitch

Re: NSDivideRect and 64-bit

2009-09-06 Thread Mitchell Livingston
applications. Declared in NSGeometry.h. Cheers, Mitch On Sunday, September 06, 2009, at 03:14PM, Jens Alfke j...@mooseyard.com wrote: On Sep 6, 2009, at 12:01 PM, Mitchell Livingston wrote: I want to use NSDivideRect in my app, but the documentation for NSRectEdge (one of the parameter types

Re: Applying color to template images

2009-08-30 Thread Mitchell Livingston
-08-29, at 2:36 PM, Mitchell Livingston wrote: Hello, I want to use NSImage's built-in template images, but want to replace the black color with different colors, such as gray or orange. I feel like I'm missing something obvious, but I can't seem to figure this out. Could someone point me

Applying color to template images

2009-08-29 Thread Mitchell Livingston
Hello, I want to use NSImage's built-in template images, but want to replace the black color with different colors, such as gray or orange. I feel like I'm missing something obvious, but I can't seem to figure this out. Could someone point me in the right direction. Thanks, Mitch

Re: UTI not identified correctly for some users.

2009-06-17 Thread Mitchell Livingston
On Jun 16, 2009, at 6:20 PM, Sean McBride wrote: On 6/15/09 12:36 AM, Mitchell Livingston said: Thanks for that. I am dealing with .torrent extensions. I have the UTI defined as org.bittorrent.torrent. Both apps are using the same file format, so there shouldn't be a problem

Re: UTI not identified correctly for some users.

2009-06-14 Thread Mitchell Livingston
, Mitchell Livingston said: As a followup to this, it appears that the users having problems do have a different app set for this file type, so it's not recognizing my UTI name for NSOpenPanel's setRequiredType: and NSWorkspace's typeOfFile:... Is there a way around this besides specifying the file

UTI not identified correctly for some users.

2009-06-11 Thread Mitchell Livingston
I have created an UTI in my app's Info.plist. For open panels, adding files, etc. I use this (or check [[[NSWorkspace sharedWorkspace] typeOfFile: file error: NULL] isEqualToString: ...]). This works fine for me, but this is failing for the proper file type for some users. Perhaps the

Re: UTI not identified correctly for some users.

2009-06-11 Thread Mitchell Livingston
explicitly? Should this be reported to Apple? Cheers, Mitch On Jun 11, 2009, at 6:46 PM, Mitchell Livingston wrote: I have created an UTI in my app's Info.plist. For open panels, adding files, etc. I use this (or check [[[NSWorkspace sharedWorkspace] typeOfFile: file error: NULL] isEqualToString

svnversion from Run Script in Xcode

2009-06-02 Thread Mitchell Livingston
In Xcode I have a Run Script phase using the /bin/sh shell. The script consists of: sh anotherscript.sh. In this other script I can svnversion. This works in terminal, but fails in Xcode. I managed to get it to work by adding, before calling anotherscript.sh: export

detect option key on startup

2009-05-09 Thread Mitchell Livingston
Hello, I want to be able to detect if the option key is being held down on launch. I found reference to GetCurrentKeyModifiers(), but that seems to be depreciated/not recommended. Thanks, Mitch ___ Cocoa-dev mailing list

RE: Subject: detect option key on startup

2009-05-09 Thread Mitchell Livingston
In what method would that need to be in to get the key on startup? I tried without luck in init and awakeFromNib. On Saturday, May 09, 2009, at 06:48PM, Kirk Kerekes kirkkere...@gmail.com wrote: How About: ([[NSApp currentEvent] modifierFlags] NSAlternateKeyMask)

Smart Folders and NSOpenPanel

2009-01-16 Thread Mitchell Livingston
I use an NSOpenPanel to allow users to choose a folder to be used later. Is there a way so that they can only chose folders, as opposed to smart folders? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: UTExportedTypeDeclarations vs CFBundleDocumentTypes

2009-01-12 Thread Mitchell Livingston
Yup. On Monday, January 12, 2009, at 03:16AM, Kyle Sluder kyle.slu...@gmail.com wrote: On Sun, Jan 11, 2009 at 7:49 PM, Mitchell Livingston livings...@mac.com wrote: Thanks for the link. I removed CFBundleTypeExtensions, but now the file icon won't show up for any of that file type

UTExportedTypeDeclarations vs CFBundleDocumentTypes

2009-01-11 Thread Mitchell Livingston
I've searched this list and google and haven't found a solid answer. My app is 10.5 only. I have a UTI set up in Info.plist with UTExportedTypeDeclarations. Do I still need CFBundleDocumentTypes, since it seems pretty redundant? Cheers, Mitch ___

Re: UTExportedTypeDeclarations vs CFBundleDocumentTypes

2009-01-11 Thread Mitchell Livingston
CFBundleTypeExtensions it works as expected. Am I doing something wrong or is this a bug in the Finder? Cheers, Mitch On Jan 11, 2009, at 7:38 PM, Kyle Sluder wrote: On Sun, Jan 11, 2009 at 5:27 PM, Mitchell Livingston livings...@mac.com wrote: My app is 10.5 only. I have a UTI set up

Re: notification when app is moved

2008-07-17 Thread Mitchell Livingston
PROTECTED] wrote: On Jul 16, 2008, at 8:28 PM, Mitchell Livingston wrote: But if the app is moved, the string that was previously returned from the call is no longer valid. So... call it again. You can do this whenever the user starts your application, or when the call returns an error saying

Re: notification when app is moved

2008-07-17 Thread Mitchell Livingston
, 2008, at 05:03PM, Uli Kusterer [EMAIL PROTECTED] wrote: On 17.07.2008, at 12:50, Mitchell Livingston wrote: I need to pass the location to a c library and reset the location in this library when the application is moved, so I need a way to know when the app is moved. How can I call it again

notification when app is moved

2008-07-16 Thread Mitchell Livingston
Hello, I have code that must know where a folder inside the Resources folder of the application is. This location must be updated whenever the app is moved to another location. Is there some sort of callback I can register to receive for this? Thanks, Mitchell Livingston

Re: notification when app is moved

2008-07-16 Thread Mitchell Livingston
/mail/en/images/spacer.gif, so I need a way to know when the app is moved. On Wednesday, July 16, 2008, at 10:34PM, Omar Qazi [EMAIL PROTECTED] wrote: On Jul 16, 2008, at 6:08 PM, Mitchell Livingston wrote: I have code that must know where a folder inside the Resources folder

mouse down selectively not select the cell

2008-07-01 Thread Mitchell Livingston
this? Thanks, Mitchell Livingston ___ 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-admins(at)lists.apple.com Help/Unsubscribe/Update your

autoresizing window and scroll bars

2008-05-22 Thread Mitchell Livingston
to get the desired behavior? Thanks, Mitchell Livingston ___ 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-admins(at)lists.apple.com Help

crash when resizing window

2008-05-12 Thread Mitchell Livingston
Hello, I have code where i manually reorder an outline view, and when it is reordered it automatically resizes to fit all the items. A crash consistently happens when I move a subitem from one group to another (in other words, when I drag a row so that it is originally in one expandable

localizable strings file with macro

2008-03-03 Thread Mitchell Livingston
in different ways? Thanks, Mitchell Livingston ___ 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-admins(at)lists.apple.com Help/Unsubscribe