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 tha

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); SetCommMask(m_hFile,dwEv

Cannot change menu state in NSSearchField menu for more than once

2008-11-02 Thread Alexander Reichstadt
Hi, when trrying to change the tickmark next to a menu of an NSSearchField it works exactly once, after that it doesn't work any more. I have to relaunch the app. I see that my code is indeed executed, but it makes no difference after the first time. Or maybe it's not refreshed somehow.

Re: Porting SetupComm function in Mac

2008-11-02 Thread Rakesh Singhal
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); SetCommMask(m_hFile,dwEventMask); There are some more things. I know only about

Re: Porting SetupComm function in Mac

2008-11-02 Thread Glenn L. Austin
Porting to the Mac isn't simply a process of "this API on the Mac kind of does what that API does on Windows." What exactly is this code trying to do? On Nov 2, 2008, at 9:23 PM, Rakesh Singhal wrote: Hi all I am porting a project from Windows (using Win32 APIs) to Mac OS. There is follow

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), th

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 Englis

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 devOutQueu

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 (Cocoa-

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 o

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 i

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

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:@"not

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 w

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 wit

Re: NSNetService won't resolve

2008-11-02 Thread Benjámin Salánki
And obvious it was. Thanks! Ben On 2008.11.03., at 3:31, Marc Krochmal <[EMAIL PROTECTED]> wrote: 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

Re: NSTableView problems

2008-11-02 Thread Mudi Dandan
You call [persiaTable reloadData] inside the tableview's delegate method.That will cause an infinite loop I guess. You shouldn't call reloaddata unless you updated the values for the tableview. On Nov 2, 2008, at 7:53 PM, Priscila J.V. wrote: Hello, I'm new in objective C programming. I tr

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 have

NSTableView problems

2008-11-02 Thread Priscila J . V .
Hello, I'm new in objective C programming. I try to do a program where a user can choose the number of partitions of a range in the code appears like "valor = 30" (number of rows in table), this range can be change from 1 to 100 only by the user, the main goal is using a NSTableView to show sq

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 returne

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 *myL

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
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 ha

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 availa

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 occurrence

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 theor

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 fr

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

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, specific

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 th

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, const

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 se