[CFBundleIdentifier] Is is really a hyphen or a minus?

2010-12-04 Thread Iceberg-Dev
According to the documentation here: http://developer.apple.com/library/mac/#documentation/General/ Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html%23// apple_ref/doc/uid/TP40009249-102070-TPXREF105 a CFBundleIdentifier value can accept alphanumeric, period and hyphen

Re: [CFBundleIdentifier] Is is really a hyphen or a minus?

2010-12-04 Thread Iceberg-Dev
On Dec 4, 2010, at 7:55 PM, Ken Thomases wrote: On Dec 4, 2010, at 12:42 PM, Iceberg-Dev wrote: By hyphen, does the documentation actually mean a minus glyph (like the one on the numeric keypad) or really the hyphen typographic glyph? If the former, why not just write minus

Re: [NSImage] Bug in System Preferences? [solved]

2010-10-27 Thread Iceberg-Dev
Le 27 oct. 10 à 02:09, Gregory Weston a écrit : On Oct 26, 2010, at 16:29, Stephane Sudre wrote: On Tue, Oct 26, 2010 at 4:14 AM, Gregory Weston gwes...@mac.com wrote: Iceberg-Dev wrote: When working with NSBitmapImageRep, calling -bitmapData is a signal that you may be editing the data

Re: [NSImage] Bug in System Preferences? [solved]

2010-10-25 Thread Iceberg-Dev
On Oct 23, 2010, at 2:41 AM, Ken Ferry wrote: On Oct 22, 2010, at 4:07 PM, Iceberg-Dev dev.iceb...@gmail.com wrote: On Oct 22, 2010, at 12:48 AM, Iceberg-Dev wrote: I'm currently playing with a screen saver. Problem: It draws correctly in fullscreen mode or in SaverLab

Re: [NSImage] Bug in System Preferences? [solved]

2010-10-22 Thread Iceberg-Dev
On Oct 22, 2010, at 12:48 AM, Iceberg-Dev wrote: I'm currently playing with a screen saver. Problem: It draws correctly in fullscreen mode or in SaverLab but does not in the preview mode of the 'Desktop Screen Saver' pane of the System Preferences. Basically, in #fail mode

[NSImage] Bug in System Preferences?

2010-10-21 Thread Iceberg-Dev
I'm currently playing with a screen saver. Problem: It draws correctly in fullscreen mode or in SaverLab but does not in the preview mode of the 'Desktop Screen Saver' pane of the System Preferences. Basically, in #fail mode, it draws the first frame and then does not refresh.

Re: iTunes 10 UI

2010-09-02 Thread Iceberg-Dev
On Sep 2, 2010, at 5:28 AM, John C. Randolph wrote: On Sep 1, 2010, at 8:15 PM, Eric E. Dolecki wrote: Top left, the traffic lights have been turned to the vertical. Is this something new or was this easy to do before? Is it just a custom implementation, or? It's pretty easy to

LSUIElement vs applicationShouldTerminate:

2010-07-22 Thread Iceberg-Dev
As far as I can tell, when LSUIElement is set to 1, applicationShouldTerminate: is not called when a Cocoa application receive a terminate request. Is there a way in this case to prevent the application from being terminated by friend terminate requests (SIGTERM would be accepted)? Mac

NSViewAnimation vs Distributed Notification: Bug?

2010-02-27 Thread Iceberg-Dev
[Q] Is there a known bug in NSViewAnimation on Mac OS X 10.4 when it comes to Distributed Notifications? Scenario: - If I animate a window resizing through a NSViewAnimation, some Distributed Notifications are only taken into account after I click in the window resized through a

Re: NSViewAnimation vs Distributed Notification: Bug?

2010-02-27 Thread Iceberg-Dev
On Feb 28, 2010, at 12:35 AM, Steven Degutis wrote: Firstly, you do not need to check if tAnimation is nil, since sending a message to nil is valid in ObjC. So I would personally remove that if() and just de-indent all the code that's inside it. Actually, in the real implementation

Re: Localization help

2010-01-27 Thread Iceberg-Dev
On Jan 27, 2010, at 3:05 PM, lorenzo7...@gmail.com wrote: [...] Of course, sorry. Instead of the localization value, I get the localization key instead, which is an English string. Here's a list of things to check: - Check that there's no missing ';' - Check that you do not have key

[NSOpenPanel] Is there a way to access the contextual information?

2009-12-27 Thread Iceberg-Dev
[Case] You display an Open Panel with the method: - [NSOpenPanel beginSheetForDirectory:file:types:modalForWindow:modalDelegate:didEndSel ector:contextInfo:]; and you set a delegate for the panel so that you can filter out some files with the delegate method - (BOOL) panel:(id)sender

Re: [NSOpenPanel] Is there a way to access the contextual information?

2009-12-27 Thread Iceberg-Dev
On Dec 27, 2009, at 11:48 PM, Graham Cox wrote: On 28/12/2009, at 9:40 AM, Iceberg-Dev wrote: Problem: what if you need to access the contextual info from the panel:shouldShowFilename: method? I haven't found a method to access the contextual information in NSSavePanel, NSPanel

Re: [textView:shouldChangeTextInRanges:replacementStrings:] When does this type of event occur?

2009-12-24 Thread Iceberg-Dev
On Dec 23, 2009, at 10:58 PM, Dave DeLong wrote: In many apps, you can hold down the option key to change the cursor into a crosshair, and do a vertical selection. In addition, in apps like Pages, you can hold down the command key to do a non- contiguous selection. I'd imagine that both

[textView:shouldChangeTextInRanges:replacementStrings:] When does this type of event occur?

2009-12-23 Thread Iceberg-Dev
What kind of event can trigger a non-linear selection to be replaced by multiple strings in different ranges? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: [UTI] Anyway to retrieve the UTI of a file without having to use a FSRef?

2009-10-13 Thread Iceberg-Dev
On Oct 13, 2009, at 12:42 AM, Jim Correia wrote: On Mon, Oct 12, 2009 at 6:36 PM, Iceberg-Dev dev.iceb...@gmail.com wrote: From what I've found in the documentation, the UTI type of a file can be retrieved using the LaunchServices APIs. This requires to provide a FSRef. Wouldn't

[UTI] Anyway to retrieve the UTI of a file without having to use a FSRef?

2009-10-12 Thread Iceberg-Dev
From what I've found in the documentation, the UTI type of a file can be retrieved using the LaunchServices APIs. This requires to provide a FSRef. Wouldn't there be an API I didn't see in Foundation that lets you obtain the type without having to convert, at least, a NSURL to a FSRef?

Re: [Performance issue] Resizing an alert sheet = blinks

2009-10-06 Thread Iceberg-Dev
On Oct 6, 2009, at 1:29 AM, Jens Alfke wrote: On Oct 5, 2009, at 3:12 PM, Iceberg-Dev wrote: Is it the intended behavior that resizing an Alert Sheet in Mac OS X 10.5.8 on a MacBook Pro produces a lot of blinking? I have a custom alert sheet that can be resized and when I resize

[Performance issue] Resizing an alert sheet = blinks

2009-10-05 Thread Iceberg-Dev
Is it the intended behavior that resizing an Alert Sheet in Mac OS X 10.5.8 on a MacBook Pro produces a lot of blinking? I have a custom alert sheet that can be resized and when I resize it on a MacBook Pro (either 9400 or 9600 GPU), the resize operation produces flicking. I tried with

[NSTextView] Shift left / Undo manager

2009-09-30 Thread Iceberg-Dev
I am currently busy re-inventing the wheel in the form a code editor. I support Shift Left and Shift Right. I would like to support Undo on Shift Left. I'm wondering how this should be done as this operation modifies both the selected range(s) and the text. I searched the archives, the

[SOLVED] Re: Matching braces and [NSTextView selectionRangeForProposedRange:granularity:];

2009-09-17 Thread Iceberg-Dev
Using - (void) textViewDidChangeSelection:(NSNotification *) inNotification instead. Works fine. On Sep 14, 2009, at 11:53 PM, Iceberg-Dev wrote: I'm currently trying to match braces in a text editor and intend to use selectionRangeForProposedRange:granularity: for that. While I don't see

Matching braces and [NSTextView selectionRangeForProposedRange:granularity:];

2009-09-14 Thread Iceberg-Dev
I'm currently trying to match braces in a text editor and intend to use selectionRangeForProposedRange:granularity: for that. While I don't see any problem in finding the matching brace, I'm a bit surprised by the way this method is called repeatedly. So far, I don't see a good way to tell

Re: Is it possible to detour a drag and drop operation?

2009-08-16 Thread Iceberg-Dev
On Aug 16, 2009, at 2:03 AM, Jerry Krinock wrote: On 2009 Aug 15, at 12:51, Iceberg-Dev wrote: When the drop is validated in the right window (type of item accepted), I would like to either display a window above the right window or change the right window content to give the user a list

Is it possible to detour a drag and drop operation?

2009-08-15 Thread Iceberg-Dev
Problem: Let's say I have 2 windows: +---++---+ +---++---+ | || | | +-+ || | | | A | || | | +-+

Getting the list of users and groups (anything new?)

2009-07-14 Thread Iceberg-Dev
On Leopard and later, is Directory Services still the official solution to retrieve the list of users and groups on the OS? Starting with Leopard, we now have the Identity Service or Collaboration Framework but it apparently can't provide all the uid and gid on the system, only provide

FSPathCopyObjectSync and symbolic links?

2009-04-26 Thread Iceberg-Dev
Is it possible to copy a symbolic link (the symbolic link file and not the item it references) using the FSPathCopyObjectSync API? No valuable info was found in the documentation, the list archive, google results. ___ Cocoa-dev mailing list

Re: FSPathCopyObjectSync and symbolic links?

2009-04-26 Thread Iceberg-Dev
On Apr 26, 2009, at 4:05 PM, Michael Hall wrote: On Apr 26, 2009, at 8:22 AM, Iceberg-Dev wrote: Is it possible to copy a symbolic link (the symbolic link file and not the item it references) using the FSPathCopyObjectSync API? No valuable info was found in the documentation, the list

Re: [NSOutlineView] _outlineCell and _trackingOutlineCell vs 64-bit

2009-04-25 Thread Iceberg-Dev
On Apr 22, 2009, at 8:16 PM, Corbin Dunn wrote: [...] There is no way to replace the outlinecell How could one then draw the disclosure triangle in white Leopard has a bug with them looking too dark; that is a known issue, and it will be fixed. There is no easy way to make them white,

[NSOutlineView] _outlineCell and _trackingOutlineCell vs 64-bit

2009-04-22 Thread Iceberg-Dev
What's the official way to replace _outlineCell and _trackingOutlineCell in Cocoa 64-bit? I do this for 32-bit: @implementation NSOutlineView (PrivateCells) - (NSButtonCell *) outlineCell { return _outlineCell; } - (void) setOutlineCell:(NSButtonCell *) inButtonCell { if

Re: [NSOutlineView] _outlineCell and _trackingOutlineCell vs 64-bit

2009-04-22 Thread Iceberg-Dev
On Apr 22, 2009, at 5:50 PM, Corbin Dunn wrote: Howdy, On Apr 22, 2009, at 4:37 AM, Iceberg-Dev wrote: What's the official way to replace _outlineCell and _trackingOutlineCell in Cocoa 64-bit? I do this for 32-bit: @implementation NSOutlineView (PrivateCells) - (NSButtonCell

Re: [BUG?] - [NSLayoutManager usedRectForTextContainer:] returns incorrect value

2009-03-30 Thread Iceberg-Dev
On Mar 30, 2009, at 3:55 PM, Benjamin Stiglitz wrote: I'm running the code below. I have a single NSWindow with a checkbox and a button. In the awakeFromNib method of the main controller, I change the attribute of the checkbox string. In the compute: method, I compute the height

[BUG?] - [NSLayoutManager usedRectForTextContainer:] returns incorrect value

2009-03-29 Thread Iceberg-Dev
Problem: I'm seeing incorrect results when I try to get the height of a string with a particular font and maximum width. Context: I'm running the code below. I have a single NSWindow with a checkbox and a button. In the awakeFromNib method of the main controller, I

Re: [NSTableView] How should a grid be drawn?

2009-03-17 Thread Iceberg-Dev
On Mar 17, 2009, at 12:45 AM, Corbin Dunn wrote: On Mar 16, 2009, at 4:06 PM, Iceberg-Dev wrote: I'm trying to draw a custom grid for a table view. I' using the code at the end of this post. The problem is that when I scroll the tableview, some of the horizontal lines are not drawn. I

Re: NSNotificationCenter : multiple messages sent to the same observer?

2009-02-22 Thread Iceberg-Dev
On Feb 22, 2009, at 1:37 AM, Michael Ash wrote: On Sat, Feb 21, 2009 at 6:06 PM, Iceberg-Dev dev.iceb...@gmail.com wrote: I just discovered something recently. If you register an observer with the same name/object/selector twice, you get the notification twice when you post it. Isn't

Re: NSNotificationCenter : multiple messages sent to the same observer?

2009-02-22 Thread Iceberg-Dev
On Feb 22, 2009, at 6:39 PM, Bill Bumgarner wrote: On Feb 22, 2009, at 8:59 AM, Iceberg-Dev wrote: On Feb 22, 2009, at 1:37 AM, Michael Ash wrote: On Sat, Feb 21, 2009 at 6:06 PM, Iceberg-Dev dev.iceb...@gmail.com wrote: I just discovered something recently. If you register an observer

Re: NSNotificationCenter : multiple messages sent to the same observer?

2009-02-22 Thread Iceberg-Dev
On Feb 22, 2009, at 7:06 PM, Bill Bumgarner wrote: On Feb 22, 2009, at 9:59 AM, Iceberg-Dev wrote: [...] The current behavior makes it possible to implement architectures where a client could take more action for any given notification by registering more than once. Not supporting

NSNotificationCenter : multiple messages sent to the same observer?

2009-02-21 Thread Iceberg-Dev
I just discovered something recently. If you register an observer with the same name/object/selector twice, you get the notification twice when you post it. Isn't the NSNotificationCenter supposed to prevent this? ___ Cocoa-dev mailing list

NSOutlineView : Incorrect Drag and Drop drawing?

2009-02-21 Thread Iceberg-Dev
I have a NSOutlineView and its highlight mode is SourceList. When I drag a selected item (the cell is a subclass of NSTextField from the DargAndDropOutlineView sample code) from the list, its text is drawn in white. This means you can't see it since most the of the windows background are

How to transform a NSString to a NSString C string format?

2009-02-05 Thread Iceberg-Dev
Problem: I would like to transform a NSString to a NSString conforming to the C string format. Examples: - toto - toto toto - \toto toto - toto\ntiti titi My Current Solution: I can do this using a NSMutableString and a series of call to: -

Re: open package installer in bundle resources directory not working

2008-12-13 Thread Iceberg-Dev
On Dec 13, 2008, at 12:46 PM, Kyle Sluder wrote: 3) Why all this trouble of launching executables? There's a reason Launch Services is a public framework; use that. Don't use -[NSWorkspace openFile:], because that's not guaranteed to open the package in Installer.app. Instead, use

Re: Drawing NSTextFieldCell subclass in table view

2008-12-13 Thread Iceberg-Dev
On Dec 13, 2008, at 11:11 PM, Andre Masse wrote: Hi, I want to display a cell like mail's message count in a table view but with a fixed size and centered on both axes. I've created a NSTextFieldCell subclass and its doing fine except that it draws in the first row only, which could

Re: Best way to Change Window

2008-11-23 Thread Iceberg-Dev
On Nov 23, 2008, at 9:44 PM, Gordon Apple wrote: What is the best way to change to a different window? I have a main window nib with a lot of controllers in it. Currently the main view is in a scrolling window. I want to live-switch between that and a borderless (optionally full

Re: Simple single file renaming application ...

2008-11-19 Thread Iceberg-Dev
On Nov 19, 2008, at 8:09 PM, vince wrote: Thanks for the help ... I want to build a simple single file re-namer. Just a window and a textField that displays the current filename, and a text Field and Save option for the edit. So right click a file/open with ... the app runs and loads

Re: NSView positioning problems

2008-11-16 Thread Iceberg-Dev
On Nov 16, 2008, at 7:25 PM, Andre Masse wrote: Hi all, In a nib, I have a view (OutputView) which contains a table view and a custom view (OutputToolbarView) which will be loaded from another nib. This view will end up in a NSTabView. So in IB, I placed a dummy custom view above the

Re: How are we supposed to retrieve the generic bundle icon?

2008-11-12 Thread Iceberg-Dev
On Nov 11, 2008, at 10:39 PM, Stephen J. Butler wrote: On Tue, Nov 11, 2008 at 3:34 PM, Iceberg-Dev [EMAIL PROTECTED] wrote: On Nov 11, 2008, at 9:44 PM, Gregory Weston wrote: Perhaps I'm missing something, but why not then retrieve the icon for the file rather than for the type? I

Re: Detect the login window is being displayed

2008-11-12 Thread Iceberg-Dev
On Nov 12, 2008, at 10:56 PM, Maggie Zhang wrote: Hi, Is there a way (like a notification or API) that the daemon can figure out when the login window is being displayed after the user logs out? SystemConfiguration Framework. ___ Cocoa-dev

Re: RE : How are we supposed to retrieve th e generic bundle icon?

2008-11-11 Thread Iceberg-Dev
to illustrate with this icon? Are you sure the Lego® block is the right thing to show? Standard Apple Plugins that use this icon. Yes, I'm sure. Message d'origine De: [EMAIL PROTECTED] de la part de Iceberg-Dev Date: mar. 11/11/2008 17:36 À: cocoa-dev@lists.apple.com Objet : How

How are we supposed to retrieve the generic bundle icon?

2008-11-11 Thread Iceberg-Dev
I need to get a NSImage of the generic bundle icon. (Mac OS X 10.4 or later) I'm currently using this: [[NSImage alloc] initWithContentsOfFile:@/System/Library/ CoreServices/CoreTypes.bundle/Contents/Resources/KEXT.icns] because: - NSFileTypeForHFSTypeCode('BNDL') does not work. It

Re: RE : How are we supposed to retrieve the generic bundle icon?

2008-11-11 Thread Iceberg-Dev
On Nov 11, 2008, at 9:39 PM, Kyle Sluder wrote: On Tue, Nov 11, 2008 at 2:50 PM, Iceberg-Dev [EMAIL PROTECTED] wrote: Standard Apple Plugins that use this icon. Yes, I'm sure. Are you attempting to use this icon for your own purposes, like plugins for your own app? No, I'm not. I just

Re: How are we supposed to retrieve the generic bundle icon?

2008-11-11 Thread Iceberg-Dev
On Nov 11, 2008, at 9:44 PM, Gregory Weston wrote: Iceberg-Dev wrote: On Nov 11, 2008, at 8:15 PM, Gregory Weston wrote: What are you really trying to illustrate with this icon? Are you sure the Lego® block is the right thing to show? Standard Apple Plugins that use this icon. Yes, I'm

Re: [NSOpenPanel] How to disable folder selection but still access their contents?

2008-10-24 Thread Iceberg-Dev
On Oct 24, 2008, at 1:20 AM, Corbin Dunn wrote: On Oct 23, 2008, at 1:38 PM, Iceberg-Dev wrote: Solution not found in the cocoabuilder archive. Problem: I have a list of files and folders. I can add items to this list through a standard NSOpenPanel dialog. When a folder

Re: [NSOpenPanel] How to disable folder selection but still access their contents?

2008-10-24 Thread Iceberg-Dev
On Oct 24, 2008, at 11:51 PM, Corbin Dunn wrote: On Oct 24, 2008, at 2:26 PM, Iceberg-Dev wrote: On Oct 24, 2008, at 1:20 AM, Corbin Dunn wrote: On Oct 23, 2008, at 1:38 PM, Iceberg-Dev wrote: Solution not found in the cocoabuilder archive. Problem: I have a list of files

[NSOpenPanel] How to disable folder selection but still access their contents?

2008-10-23 Thread Iceberg-Dev
Solution not found in the cocoabuilder archive. Problem: I have a list of files and folders. I can add items to this list through a standard NSOpenPanel dialog. When a folder is already in the list, I want to prevent the user from selecting it from the NSOpenPanel dialog. I can