Nearly have NSPopUpButtonCell working, need help for one binding

2008-11-02 Thread Ken Tozier
Hi I have a table with one column that displays an NSPopUpButtonCell. I was able to bind the menu items into the cell and can select items in the menu, but when I change a selection on one row's menu, the menu in every other row in the table changes to the new selection. Here's how I'm

Re: Need help to make this method prettier

2008-11-02 Thread Andre Masse
I tried at first to use the standard NSNumberFormatter in IB but couldn't find the right pattern. Your solution works great and don't require subclassing so thanks a lot. Andre Masse On Nov 1, 2008, at 16:09, Bill Bumgarner wrote: Use the APIs whenever possible. int main (int argc,

Re: Tracking changes to NSTableView datasource

2008-11-02 Thread Andre Masse
This is an very interesting idea. The only problem I can see is for undoing. I could begin a transaction before showing the view and commit or rollback accordingly. I need to explore the potentials problems of keeping a transaction open for a theoretically long time though. This to cover

Re: When and how often do you mix C++ with Objective C in your project?

2008-11-02 Thread Tommy Nordgren
On 31 okt 2008, at 02.30, Peter N Lewis wrote: AI am a newbie to the cocoa world (PC - Mac switcher). I have a fair amount of experience coding in C and C++ and I am just getting into Obj C now. Right now I am trying to learn the language idioms and patterns in the Obj C world,

Simultaneous CoreAnimations

2008-11-02 Thread Jeshua Lacock
Greetings, My flipbook animation is now working - thanks everyone! I was under the impression that each CoreAnimation operated as an independent thread. However, I created a function that sets the forKey property to a unique indentifier each time it is called, and each time it is called

Duplicating NSWindow's title bar buttons

2008-11-02 Thread Mattias Arrelid
Hi list, In NSWindow there's the following two functions: - standardWindowButton: + standardWindowButton:forStyleMask: The first one returns a reference to the actual window button in question. The second one, the class method, returns a new instance of a window button. This button (returned

Re: Simultaneous CoreAnimations

2008-11-02 Thread Jeshua Lacock
Hello, It just occurred to me that I probably need my CAKeyframeAnimation declaration to be an array with a capacity to support the maximum number of animations I might have, and then use an available CAKeyframeAnimation to use for each occurrence of the animation. Going to test my

Re: Simultaneous CoreAnimations

2008-11-02 Thread Jeshua Lacock
On Nov 2, 2008, at 11:38 AM, Jeshua Lacock wrote: It just occurred to me that I probably need my CAKeyframeAnimation declaration to be an array with a capacity to support the maximum number of animations I might have, and then use an available CAKeyframeAnimation to use for each

Re: Simultaneous CoreAnimations

2008-11-02 Thread Jeshua Lacock
On Nov 2, 2008, at 11:53 AM, Jeshua Lacock wrote: On Nov 2, 2008, at 11:38 AM, Jeshua Lacock wrote: It just occurred to me that I probably need my CAKeyframeAnimation declaration to be an array with a capacity to support the maximum number of animations I might have, and then use an

Re: Simultaneous CoreAnimations

2008-11-02 Thread Patrick Mau
On 02.11.2008, at 20:10, Jeshua Lacock wrote: Hello again, Hi Jeshua I have one question - hopefully not for myself this time. :) Is there a callback or some way to determine when a CAKeyframeAnimation has finished playing? Or do I need to set up a timer and calculate when a animation

Re: Simultaneous CoreAnimations

2008-11-02 Thread Jeshua Lacock
On Nov 2, 2008, at 1:57 PM, Patrick Mau wrote: On 02.11.2008, at 20:10, Jeshua Lacock wrote: Hello again, Hi Jeshua Hi Patrick, Thanks for your help - that looks perfect! I have one question - hopefully not for myself this time. :) Is there a callback or some way to determine when a

Re: Simultaneous CoreAnimations

2008-11-02 Thread Patrick Mau
Hallo Jeshua The following is all written from memory, not looking at actual code. To receive notifications, you have to set and impplement a delegate and use it in your CALayer. Like this: - (void) setupLayer { CABasicAnimation *anim = [CABasicAnimation animation]; CALayer

Re: NSNetService won't resolve

2008-11-02 Thread Marc Krochmal
Hi Benjámin, On Oct 31, 2008, at 10:37 AM, Benjámin Salánki wrote: Hi all, I have an NSNetService enabled app that acts as both the client and the server on the same machine. My problem is that once I register the service I create and I want to set up the connection the aNetService

External Program Control from within Cocoa App

2008-11-02 Thread Ronald Ramdhan
Hey Everyone, I am working on a project where I would like to control external programs from within my Cocoa Application. For example, the ability to control a program like PowerPoint from within my code. Is there anyway to do this programmatically without the use of Apple Script? I

Re: External Program Control from within Cocoa App

2008-11-02 Thread Nick Zitzmann
On Nov 2, 2008, at 3:25 PM, Ronald Ramdhan wrote: I am working on a project where I would like to control external programs from within my Cocoa Application. For example, the ability to control a program like PowerPoint from within my code. Is there anyway to do this programmatically

Signature Recognition in Cocoa

2008-11-02 Thread Pierce Freeman
I have been looking at various open source projects/sites but still can't find a way to check two signatures to see if they are the same in Cocoa. For example: On setup, User A writes his name on his tablet, then User B tries to sign in using an imitation signature, but it will return an

Localization...

2008-11-02 Thread Chris Idou
I don't seem to be having much luck getting localization to work. I've got a utf16 strings file in my project called MetaData.strings that contains: kMDItemFSLabel = color label; Then in my code... [[NSBundle bundleForClass:[self class]] localizedStringForKey:@kMDItemFSLabel value:@nothing

Re: Localization...

2008-11-02 Thread Markus Spoettl
On Nov 2, 2008, at 8:04 PM, Chris Idou wrote: [[NSBundle bundleForClass:[self class]] localizedStringForKey:@kMDItemFSLabel value:@nothing here table:@MetaData] MetaData.strings ends up in my English.lproj and get info says it is an English localization. But the code returns nothing here.

Re: Porting from Windows to Mac

2008-11-02 Thread Chris Idou
Do you really mean this? As far as I've heard, Apple's official stance has never been to classify Carbon as a legacy technology (though they've certainly taken all the steps). Can we finally settle this issue and start calling things as they are? Of course there is the whole issue of

Re: Removing 4 pixels

2008-11-02 Thread Dave DeLong
Does anyone have any ideas on how to do this? Dave On 24 Oct, 2008, at 9:18 PM, Dave DeLong wrote: Hi everyone, At the top of every NSMenu I can find, with one exception (which I will get to), there are four blank pixels. These pixels separate the top of the first menuitem from the top

NSPredicateEditor

2008-11-02 Thread Chris Idou
Has anyone been able to add menu items to the first popup while it is running? Or are you pretty much stuck with whatever the initial values were? I've tried various things and haven't been able to do it. ___ Cocoa-dev mailing list

Porting SetupComm function in Mac

2008-11-02 Thread Rakesh Singhal
Hi all I am porting a project from Windows (using Win32 APIs) to Mac OS. There is following function, for which I am no finding any equivalent fucntion in Mac. Actually I could not find these parameters in termios structure. BOOL WINAPI SetupComm ( HANLDE hFile, DWORD devInQueue, DWORD

Re: Localization...

2008-11-02 Thread Michael Ash
On Mon, Nov 3, 2008 at 12:15 AM, Markus Spoettl [EMAIL PROTECTED] wrote: On Nov 2, 2008, at 8:04 PM, Chris Idou wrote: [[NSBundle bundleForClass:[self class]] localizedStringForKey:@kMDItemFSLabel value:@nothing here table:@MetaData] MetaData.strings ends up in my English.lproj and get info

Re: Removing 4 pixels

2008-11-02 Thread Glenn L. Austin
According to another list, it's likely a bug. On Nov 2, 2008, at 8:52 PM, Dave DeLong wrote: Does anyone have any ideas on how to do this? Dave On 24 Oct, 2008, at 9:18 PM, Dave DeLong wrote: Hi everyone, At the top of every NSMenu I can find, with one exception (which I will get to),

Re: Porting SetupComm function in Mac

2008-11-02 Thread Chris Ridd
On 3 Nov 2008, at 07:25, Rakesh Singhal wrote: This API setups some communication parameters for communication devie. Here I am writing library for serial port. There are some more APIs, which I am not able to understand liek following: CreateEvent(0,true,false,0);

Re: Cannot change menu state in NSSearchField menu for more than once

2008-11-02 Thread Alexander Reichstadt
I found something really odd just now. The searchmenu is actually connected to an IBAction method. The NSLog sits in there and simply prints out the sender, i.e. the menuItem that triggered it. If I change the menu item in the UI the NSLog printout shows that it's another part of memory