Re: borderless button - hilight on click

2010-10-31 Thread Mitchell Livingston
> case. Just a thought... > > -Laurent. > -- > Laurent Daudelin > AIM/iChat/Skype:LaurentDaudelin > http://www.nemesys-soft.com/ > Logiciels Nemesys Software > laur...@nemesys-soft.com > > On Oct 31, 20

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 b

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: fStatusWin

Re: using QLPreviewPanel and supporting 10.5

2009-10-10 Thread Mitchell Livingston
On Saturday, October 10, 2009, at 12:18PM, "Kyle Sluder" wrote: >On Oct 10, 2009, at 5:40 AM, Mitchell Livingston >wrote: > >> How would that work with storing the instance variables? > >1) Why are you concerned with QLPreviewPanel's instance variable

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" wrote: > ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

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: /Users/robertvehse/Desktop/Transmission.app/Contents

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 __

Re: NSDivideRect and 64-bit

2009-09-06 Thread Mitchell Livingston
4-bit applications. Declared in NSGeometry.h." Cheers, Mitch On Sunday, September 06, 2009, at 03:14PM, "Jens Alfke" wrote: > >On Sep 6, 2009, at 12:01 PM, Mitchell Livingston wrote: > >> I want to use NSDivideRect in my app, but the documentation for >> NSR

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: 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 some

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

Re: UTI not identified correctly for some users.

2009-06-14 Thread Mitchell Livingston
f it's a different format but both have conflicting extensions, you are mostly out of luck. HFS types won't help either because LS always prioritizes extensions, even when they conflict. Do file bug(s); dupes increase priority. You may reference mine: . Cheers, Sean On 6/11/09 7:19

Re: UTI not identified correctly for some users.

2009-06-11 Thread Mitchell Livingston
ile extension 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: NUL

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 syste

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 PATH=$PATH:/opt/subve

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" wrote: > >How About: ([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask) > > > > __

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 (Cocoa-dev@lists.apple.co

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 mo

Re: UTExportedTypeDeclarations vs CFBundleDocumentTypes

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

Re: UTExportedTypeDeclarations vs CFBundleDocumentTypes

2009-01-11 Thread Mitchell Livingston
n I re-add 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 > wrote: My app is 10.5 only. I have a UTI set up in In

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: notification when app is moved

2008-07-17 Thread Mitchell Livingston
ursday, July 17, 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 k

Re: notification when app is moved

2008-07-17 Thread Mitchell Livingston
r Qazi" <[EMAIL 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 st

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 insi

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

mouse down selectively not select the cell

2008-07-01 Thread Mitchell Livingston
to do 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

autoresizing window and scroll bars

2008-05-22 Thread Mitchell Livingston
on how 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

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 r

set space for window

2008-05-10 Thread Mitchell Livingston
is there anything I can do to get this behavior? Thank you, 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

applicationWillTerminate and animations

2008-03-27 Thread Mitchell Livingston
Hello, When my program quits, I would like to fade out all the windows using the animator. When I put this code in the applicationWillTerminate: method, however, it appears to be called but doesn't animate. How would I got about to get this to work? Thank you, Mitchell Livin

NSOutlineView "sliding" animation

2008-03-25 Thread Mitchell Livingston
f animation. Could someone point me in the right direction (perhaps a relevant tutorial, because my attempts at finding one have failed)? Thank you, Mitchell Livingston ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not po

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/Uns