about trackingArea & cursorUpdate

2008-12-24 Thread BirdSong
Hi all,I have a background application and now want to change cursor image over different types of views. I create a NSTrackingArea with option (NSTrackingCursorUpdate | NSTrackingActiveAlways) and add the tracking area to my customer view. Also, I rewrite the -(void)cursorUpdate:(NSEvent *)eve

RE: interact with users in a background app

2008-12-08 Thread BirdSong
e: Mon, 8 Dec 2008 02:56:59 -0500> From: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]> Subject: Re: interact with users in a background app> CC: cocoa-dev@lists.apple.com> > On Mon, Dec 8, 2008 at 2:14 AM, BirdSong <[EMAIL PROTECTED]> wrote:>> Hi all,I want to add a win

RE: interact with users in a background app

2008-12-08 Thread BirdSong
yep> Date: Mon, 8 Dec 2008 02:56:59 -0500> From: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]> Subject: Re: interact with users in a background app> CC: cocoa-dev@lists.apple.com> > On Mon, Dec 8, 2008 at 2:14 AM, BirdSong <[EMAIL PROTECTED]> wrote:>> Hi all,I wan

RE: interact with users in a background app

2008-12-07 Thread BirdSong
.apple.com> > [NSApp activateIgnoringOtherApps:YES];> > On Mon, Dec 8, 2008 at 2:14 AM, BirdSong <[EMAIL PROTECTED]> wrote:>>>> Hi all,I want to add a window to a background application in order to interact with users sometimes. However, I found the window I added is n

interact with users in a background app

2008-12-07 Thread BirdSong
Hi all,I want to add a window to a background application in order to interact with users sometimes. However, I found the window I added is not a keywindow or so because I can not type in the textField which located in the window... Does any one know how to solve this problem, I mean edit in th

import static library

2008-12-02 Thread BirdSong
Hi all,I have an external c++ static library and want to use it in my cocoa project. I just drag the .a file into my project but seems my code didn't find the methods in the library. I guess maybe I need to set some link path or so, but I don't know how to set and which parameter, does anyone h

about Preferences Toolbar

2008-11-29 Thread BirdSong
Hi all, I am writting the mac component of a mac-iphone application. I saw most of the applications(Finder, MSN, iChat...) on Mac are all using the same style preferences toolbar. However, I didn't find it in IB's Libirary. Could anyone tell me what's it or where can I find it? Thanks. ___

about unit test in xcode

2008-11-25 Thread BirdSong
Hi all,I followed XCode Unit Testing Guide , create a independent test target . But when I build the project, there was always 1 error.Test host'/myApp/build/Debug/myApp/Contents/MacOs/myApp' existed abnormally with code 127 (it may have crashed).But I checked my app, it can run normally witho

using C++ STL in Empty Project

2008-11-24 Thread BirdSong
Hi all,I want to use c++ STL in a empty project, but there are some linking errors... Does anyone know how to fix it?Are there any pre-steps to setup the environment (such as set include path, or include some framework, etc).Thanks in advance.Best Wishes! Shuo SongSchool of Software Engineering

-(BOOL)handleEvent:(NSEvent*)event client:(id)sender doesn't work

2008-11-19 Thread BirdSong
Hi all,As the documents said, there are three ways to receive input from the client.one of them is keybinding(-(BOOL)inputText:(NSString*)string client:(id)sender;) which works in the sample code.another is -(BOOL) handleEvent:(NSEvent*)event client:(id)sender;I tried to use this one instead o

about IMKMouseHandling Protocol in IMKit

2008-11-18 Thread BirdSong
Hi folks,I am writing a chinese IME for mac with IMK framework now. I use my?input controller which inherited from IMKInputController and draw the?candidates window myself (so I don't use the default candidates window).My question is: I want to know the current client mouse events(such as?the w