Re: How to make app login window to look like OS X user login window ?

2009-04-21 Thread Benjamin Dobson
On 22 Apr 2009, at 06:32:55, Mario Kušnjer wrote: Greetings everyone ! So the question is how to make a window that doesn't have a title bar and borders ? Actually I would like it to be just like user login window of OS X. This could also go for a so called "Splash Screen" on app launch.

Re: Which is the event that when the mouse move out of the window area would response?

2009-04-21 Thread Joar Wingfors
On 21 apr 2009, at 23.22, Joe Yi wrote: hello all:I had searched the document of the NSWindow,but I can't find the event the would response when the mouse move out of the window area . Anyone can tell me which method I could use? I don't think that's functionality that's built into NSWin

Which is the event that when the mouse move out of the window area would response?

2009-04-21 Thread Joe Yi
hello all:I had searched the document of the NSWindow,but I can't find the event the would response when the mouse move out of the window area . Anyone can tell me which method I could use? thank you Joe YIK ___ Cocoa-dev mailing list (Cocoa-dev@lists.a

Long Time Dealy When getting Vended Object

2009-04-21 Thread Kiran Kumar S
Hi, Really going mad, it is taking long time response when i am trying to get vended Object from the remote machine which doesn't exist in the network. . I am facing same long time delay(more than 60 sec) when i am trying to get vended object from the remote machine which gone to sleep

Really big files and encodings

2009-04-21 Thread Seth Willits
There's actually just one simple question, but there's a bit of background for context: -- In my app, I import data from potentially very large files. In the first pass, I simply mmap'd the entire file, created a string using CFStringCreateWithBytesNoCopy, and go about my business. This

Re: How to make app login window to look like OS X user login window ?

2009-04-21 Thread Joar Wingfors
On 21 apr 2009, at 22.32, Mario Kušnjer wrote: So the question is how to make a window that doesn't have a title bar and borders ? Actually I would like it to be just like user login window of OS X. This could also go for a so called "Splash Screen" on app launch. Hello Mario, I think y

How to make app login window to look like OS X user login window ?

2009-04-21 Thread Mario Kušnjer
Greetings everyone ! So the question is how to make a window that doesn't have a title bar and borders ? Actually I would like it to be just like user login window of OS X. This could also go for a so called "Splash Screen" on app launch. Thanks to all in advance. Mario

Re: MDItemCopyAttribute and kMDItemFinderComment

2009-04-21 Thread Jeremy W. Sherman
> > Can you point to any official documentation for the Finder comment xattr > name? > No, I cannot, beyond a support article which relies on the fact ( http://support.apple.com/kb/TA25203?viewlocale=en_US). I don't really want to be sending apple events to the finder since this is > a background

Re: MDItemCopyAttribute and kMDItemFinderComment

2009-04-21 Thread Adam R. Maxwell
On Apr 21, 2009, at 8:30 PM, Jeremy W. Sherman wrote: getxattr(2) will directly access the current on-disk attribute value. Why not just use it as Alastair suggested? Can you point to any official documentation for the Finder comment xattr name? The storage for it has changed before, so

Re: Time since Login?

2009-04-21 Thread Jeremy W. Sherman
How about just nice(1)-ing the process doing the intense processing to be lower-priority, and letting the scheduler sort it all out? If you really want to try and schedule yourself, you can check out how uptime does it in the Darwin sourcecode and do it that way. Running nm on uptime will point yo

Re: code behind NSRunAlertPanel

2009-04-21 Thread Jeremy W. Sherman
> > Incidentally I was mistakenly under the impression that -runModalForWindow: > was deprecated. > You were likely thinking of -[NSApplication runModalForWindow:relativeToWindow:], which has been superseded by -beginSheet:modalForWindow:…. -runModalForWindow: is used to display an application-moda

Time since Login?

2009-04-21 Thread Trygve Inda
How can I get: (a) elapsed time since login (b) elapsed time since startup ?? My goal is to delay some intense processing until the system is fully up and running as it seems to do a lot of housekeeping at startup. Is there also a way to determine some sort of overall system activity? It may b

Thai in Dictionary.app

2009-04-21 Thread Gerriet M. Denkmann
When I enter: THAI CHARACTER KHO KHWAI, SARA UU, MAI EK I get the same words shown as with: KHO KHWAI, MAI EK, SARA UU. This is a very good feature. But when I enter: KHO KHAI, SARA II, MAI EK I get only those keys which have these letters in exactly this order. Why? Bug or feature? Is there

Re: MDItemCopyAttribute and kMDItemFinderComment

2009-04-21 Thread Jeremy W. Sherman
getxattr(2) will directly access the current on-disk attribute value. Why not just use it as Alastair suggested? —Jeremy On Tue, Apr 21, 2009 at 8:16 PM, Chris Idou wrote: > > > I don't really want to be sending apple events to the finder since this is > a background app, and it could be callin

Re: Instance variable access from functions

2009-04-21 Thread Seth Willits
Properties? I don't see the connection at all. The instance variables I'm accessing should be available only to the class itself. Otherwise I could just use @public and access it the same way as below, but allowing the function to be defined outside of the implementation. I want to use a

Re: How do you get the font used in a menu item?

2009-04-21 Thread Graham Cox
On 22/04/2009, at 1:10 PM, Jerry Krinock wrote: I need to calculate how wide it will be when drawn with whatever font it is going to be drawn with. *** But anyhow, I followed your advice. Since I need to setTitle: on my menu items anyhow, I created an attributed string and setAttribute

Re: How do you get the font used in a menu item?

2009-04-21 Thread Jerry Krinock
On 2009 Apr 21, at 18:11, Graham Cox wrote: And this requires the menu item's font because...? I need to calculate how wide it will be when drawn with whatever font it is going to be drawn with. *** But anyhow, I followed your advice. Since I need to setTitle: on my menu items anyhow,

Fast Forward and backward about QuickTime movie

2009-04-21 Thread Bright
Hi douglas, thank you for your help. Now I expect that the speed is fast when user press the button and the speed is normal when user unfasten the button. I am a fresh man,ha. I don't know how to do this. Could you tell more detail?thank you! 2009-04-21,"douglas welton" >To implement

Re: Instance variable access from functions

2009-04-21 Thread Greg Parker
On Apr 21, 2009, at 7:40 PM, Seth Willits wrote: Is the non-protected access of instance variables from functions defined inside of @implementations documented anywhere? I'm wondering if this some secret thing that I shouldn't use, or something that's actually pretty common used? @implemen

Re: Instance variable access from functions

2009-04-21 Thread Luke the Hiesterman
It's done all the time. You should read up on Objective-C 2.0 properties, though, to learn when it's best to use properties. Luke On Apr 21, 2009, at 7:40 PM, Seth Willits wrote: Is the non-protected access of instance variables from functions defined inside of @implementations documented

Re: iphone SDK session duration

2009-04-21 Thread Seth Willits
On Apr 21, 2009, at 4:00 PM, Bess Ho wrote: Is this appropriate mailing list to ask iphone SDK questions? How do you measure session duration on a utility application with 3 ViewControllers? "Session" being how long your app is running? Use the UIApplication delegate methods to know when yo

Instance variable access from functions

2009-04-21 Thread Seth Willits
Is the non-protected access of instance variables from functions defined inside of @implementations documented anywhere? I'm wondering if this some secret thing that I shouldn't use, or something that's actually pretty common used? @interface Foo : NSObject { int special; } - (

Re: Modal dialog over modal dialog in Cocoa

2009-04-21 Thread Ken Thomases
On Apr 21, 2009, at 5:37 PM, John Yeh wrote: The init function for each dialog looks like this: @implementation SettingsController - (id)init { [super init]; self = [super initWithWindowNibName:@"FLAirMainSettingsPanel"]; return self; } Why are you doubly-initing the object? You call

Re: code behind NSRunAlertPanel

2009-04-21 Thread Graham Cox
On 22/04/2009, at 9:22 AM, John Yeh wrote: Can someone please point me to the code sample or document? [NSApplication beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo]; Does it for me... Incidentally I was mistakenly under the impression that - runModalForWindow: was

Re: Modal dialog over modal dialog in Cocoa

2009-04-21 Thread Graham Cox
On 22/04/2009, at 8:37 AM, John Yeh wrote: [NSApp runModalForWindow: [settingsController window]]; // Dialog is up here. [NSApp endSheet: [settingsController window]]; I think endSheet: needs to balance one of the beginSheet: methods, and conversely, runModalForWindow: needs to be balanced

Re: iphone SDK session duration

2009-04-21 Thread Luke the Hiesterman
Sounds like you've already answered your question. Luke On Apr 21, 2009, at 4:00 PM, Bess Ho wrote: Is this appropriate mailing list to ask iphone SDK questions? How do you measure session duration on a utility application with 3 ViewControllers? Use NSDate to mark the starting and ending th

Re: imap client library?

2009-04-21 Thread Mark Townsend
Here you go: http://www.mronge.com/m/MailCore/ Or there is Pantomine, but I heard that one is pretty slow. http://www.collaboration-world.com/cgi-bin/project/index.cgi?pid=3 --- Mark Townsend mltowns...@gmail.com http://www.markltownsend.com On Tue, Apr 21, 2009 at 4:08 PM, Wayne Shao wrote: >

code behind NSRunAlertPanel

2009-04-21 Thread John Yeh
I want to know how NSRunAlertPanel is implemented assuming the code is also written in Cocoa. I am curious why NSRunAlertPanel is able to run on top of a modal dialog. Can someone please point me to the code sample or document? Thanks. -John ___ Cocoa-

Drag and drop display image and file path?

2009-04-21 Thread Henrietta Read
Hi, I have an Image Well (NSImageView) in a window. I would like to display a drag and drop image in the view and pass the file path on to my controller object. In my 'MyImageView' object I'm doing: - (NSDragOperation)draggingEntered:(id )sender { if((NSDragOperationGeneric & [sender

iphone SDK session duration

2009-04-21 Thread Bess Ho
Is this appropriate mailing list to ask iphone SDK questions? How do you measure session duration on a utility application with 3 ViewControllers? Use NSDate to mark the starting and ending the session and print the time lapsed on NSLog. -- Bess Ho __

Modal dialog over modal dialog in Cocoa

2009-04-21 Thread John Yeh
In Carban, I can create a modal dialog over a modal dialog without any problem. But in Cocoa, the second modal dialog is always displayed behind the first one, and the event loop is still on the first dialog. In other words, the second modal dialog is unclickable. Can you give me some informatio

Re: newbie questions on NSString* as a class attribute

2009-04-21 Thread Andrew Farmer
On 21 Apr 09, at 17:53, Wayne Shao wrote: Let's say that I have a member variable NSString* logFilePath, I do init in the initWith method as logFilePath = [[some_other_path stringByAppendingPathComponent:@"log.txt"] copy]; The question is, if I do not call copy, is it true that l

Re: How do you get the font used in a menu item?

2009-04-21 Thread Graham Cox
On 22/04/2009, at 11:06 AM, Jerry Krinock wrote: Because I am using KBPopUpTableHeaderCell to allow the user to select which attribute is shown in a table column. Further, I want to set the column width to just the minimum needed (to fit the column heading text) when the menu is set to sh

Re: How do you get the font used in a menu item?

2009-04-21 Thread Jerry Krinock
On 2009 Apr 21, at 17:53, Graham Cox wrote: I suppose I should also have asked - why do you need to know? Because I am using KBPopUpTableHeaderCell to allow the user to select which attribute is shown in a table column. Further, I want to set the column width to just the minimum needed (

Re: How do you get the font used in a menu item?

2009-04-21 Thread Graham Cox
On 22/04/2009, at 10:48 AM, Graham Cox wrote: On 22/04/2009, at 10:36 AM, Jerry Krinock wrote: I get a default menu from a newly-created popup button cell by sending -[NSPopUpButtonCell menu] How can I find out the font used in this menu? (It's an NSMenu.) I don't see any 'font' acce

newbie questions on NSString* as a class attribute

2009-04-21 Thread Wayne Shao
Let's say that I have a member variable NSString* logFilePath, I do init in the initWith method as logFilePath = [[some_other_path stringByAppendingPathComponent:@"log.txt"] copy]; The question is, if I do not call copy, is it true that logFilePath could be subject to be GC'ed? Anothe

Re: How do you get the font used in a menu item?

2009-04-21 Thread Graham Cox
On 22/04/2009, at 10:36 AM, Jerry Krinock wrote: I get a default menu from a newly-created popup button cell by sending -[NSPopUpButtonCell menu] How can I find out the font used in this menu? (It's an NSMenu.) I don't see any 'font' accessors, and -[NSMenuItem attributedTitle] returns

Re: How do you get the font used in a menu item?

2009-04-21 Thread Adam R. Maxwell
On Apr 21, 2009, at 5:36 PM, Jerry Krinock wrote: I get a default menu from a newly-created popup button cell by sending -[NSPopUpButtonCell menu] How can I find out the font used in this menu? (It's an NSMenu.) I don't see any 'font' accessors, and -[NSMenuItem attributedTitle] return

How do you get the font used in a menu item?

2009-04-21 Thread Jerry Krinock
I get a default menu from a newly-created popup button cell by sending -[NSPopUpButtonCell menu] How can I find out the font used in this menu? (It's an NSMenu.) I don't see any 'font' accessors, and -[NSMenuItem attributedTitle] returns nil. Thanks, Jerry ___

Re: MDItemCopyAttribute and kMDItemFinderComment

2009-04-21 Thread Chris Idou
I don't really want to be sending apple events to the finder since this is a background app, and it could be calling it fairly frequently, and I believe this can impact the user's foreground use of Finder. Does anybody know what the issue is? Mostly the synchronization between Finder Comments

imap client library?

2009-04-21 Thread Wayne Shao
Hi, Is there any built-in or other imap client library for Xcode projects? I just need to perform read-only operations such as go to fetch all messages in a folder. Same question for the related MIME parsing library. Thanks, -- Wayne ___ Cocoa-dev mail

Re: canBeVisibleOnAllSpaces added in 10.5 and deprecated in 10.5?

2009-04-21 Thread Corbin Dunn
On Apr 21, 2009, at 2:34 PM, Sean McBride wrote: Hi, Can someone explain how a method added in 10.5 can be deprecated in 10.5? [sic] I also for

Re: canBeVisibleOnAllSpaces added in 10.5 and deprecated in 10.5?

2009-04-21 Thread Corbin Dunn
On Apr 21, 2009, at 2:34 PM, Sean McBride wrote: Hi, Can someone explain how a method added in 10.5 can be deprecated in 10.5? [sic] That metho

Re: Getting the message text of a mail

2009-04-21 Thread Julien Jalon
The problem is not really that your plugin might be broken by a new version of mail but that it might break mail without the user understanding it's caused by your plugin. -- Julien from his iPhone Le 21 avr. 2009 à 23:47, geoff...@fileflow.com a écrit : On 21 Apr 2009, at 22:53, Kyle Slu

Re: canBeVisibleOnAllSpaces added in 10.5 and deprecated in 10.5?

2009-04-21 Thread Julien Jalon
I think the "how" is obvious. I suspect you're more interested in the "why" :-) -- Julien from his iPhone Le 21 avr. 2009 à 23:34, "Sean McBride" a écrit : Hi, Can someone explain how a method added in 10.5 can be deprecated in 10.5? [sic]

Re: Getting the message text of a mail

2009-04-21 Thread geoffrey
On 21 Apr 2009, at 22:53, Kyle Sluder wrote: On Tue, Apr 21, 2009 at 4:17 PM, Scott Anguish wrote: You should know that there is no public API for writing a Mail.app plugin. And please file a bug regarding this glaring omission. --Kyle Sluder Good point. I know all this but I'm willin

canBeVisibleOnAllSpaces added in 10.5 and deprecated in 10.5?

2009-04-21 Thread Sean McBride
Hi, Can someone explain how a method added in 10.5 can be deprecated in 10.5? [sic] Cheers, -- __

GSM 7 bit NSString?

2009-04-21 Thread Robert Kukuchka
Hello, Does anyone know of any open source code that adds NSString categories for the GSM 7bit encoding? Cheers, Rob ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Empty stack trace in crash reports

2009-04-21 Thread Seth Willits
On Apr 21, 2009, at 12:43 PM, Greg Parker wrote: If the stack trace is truly empty - not even a single address in the list - then they're probably idle workqueue threads. They're part of the NSOperation implementation, the kernel adds or deletes them whenever it feels like, and they don't h

Re: Getting the message text of a mail

2009-04-21 Thread Kyle Sluder
On Tue, Apr 21, 2009 at 4:17 PM, Scott Anguish wrote: > You should know that there is no public API for writing a Mail.app plugin. And please file a bug regarding this glaring omission. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.c

Re: Getting the message text of a mail

2009-04-21 Thread Scott Anguish
You should know that there is no public API for writing a Mail.app plugin. Whatever you write can, and very probably will, break in the future. On 21-Apr-09, at 11:39 AM, geoff...@fileflow.com wrote: Hi everyone. I'm writing a plugin to Mail.app in objective-C and it is going alright but

Re: Empty stack trace in crash reports

2009-04-21 Thread Greg Parker
On 20 Apr 2009, at 21:49, Seth Willits wrote: Alright, not strictly Cocoa related, but someone will surely know :) What are the empty threads that show up in a crash report? ie Thread 22 crashed, and there's 20 threads listed in the report, but 17-21 have no stack trace. Is this a thread t

Re: Empty stack trace in crash reports

2009-04-21 Thread Seth Willits
On Apr 21, 2009, at 3:19 AM, Alastair Houghton wrote: Alright, not strictly Cocoa related, but someone will surely know :) What are the empty threads that show up in a crash report? ie Thread 22 crashed, and there's 20 threads listed in the report, but 17-21 have no stack trace. Is this a t

Getting the message text of a mail

2009-04-21 Thread geoffrey
Hi everyone. I'm writing a plugin to Mail.app in objective-C and it is going alright but I have a major problem. I want to get the message text written by the user and I don't seem to be able to. I have a CompositeBackEnd object that seems to allow me to get the message body but I cannot ge

how to get the save File path from NSPrintpanel

2009-04-21 Thread sandeep chaudhary
Hi All,          I am using  the  Objective-C  for my application. In my application I use the NSPrintPanel to print the document. In the NSPrintPanel user can save the document using the "Save as pdf" option of NSPrintPanel, and a new dialog is open to save the document. In this dialog user can

Re: Get the name of the method that called a method

2009-04-21 Thread Alex Kac
WEll that's during debugging. I'm trying to log it during a beta tester run. I don't want it to crash, but just during some debugging with these testers I want to see what methods call it when in relation to other things happening. In our tests it should only happen in specific situations,

Re: Get the name of the method that called a method

2009-04-21 Thread Marcel Weiher
On Apr 20, 2009, at 23:09 , Alex Kac wrote: I am trying to log some specific error conditions in a fairly dynamic environment (of course Obj-C's forté), and would like to log some sort of backtrace of method calls that reached a specific method. What is the best way to get that info? This

Re: Get the name of the method that called a method

2009-04-21 Thread Ed Wynne
On Apr 21, 2009, at 11:27 AM, Alastair Houghton wrote: On 21 Apr 2009, at 15:59, Michael Ash wrote: On Tue, Apr 21, 2009 at 2:09 AM, Alex Kac wrote: I am trying to log some specific error conditions in a fairly dynamic environment (of course Obj-C's forté), and would like to log some sort

Re: Get the name of the method that called a method

2009-04-21 Thread Alastair Houghton
On 21 Apr 2009, at 15:59, Michael Ash wrote: On Tue, Apr 21, 2009 at 2:09 AM, Alex Kac wrote: I am trying to log some specific error conditions in a fairly dynamic environment (of course Obj-C's forté), and would like to log some sort of backtrace of method calls that reached a specific met

How to show Navigation Controller flipped when device is upside-down

2009-04-21 Thread Miles
-- Is there a way to bring in a navigation controller view in flipped mode when the device is already flipped? shouldAutorotateToInterfaceOrientation works if the device is rotated after the navigation controller view has appeared, but if the device is already flipped w

Re: Get the name of the method that called a method

2009-04-21 Thread Michael Ash
On Tue, Apr 21, 2009 at 2:09 AM, Alex Kac wrote: > I am trying to log some specific error conditions in a fairly dynamic > environment (of course Obj-C's forté), and would like to log some sort of > backtrace of method calls that reached a specific method. > > What is the best way to get that info

Re: Fast Forward and backward about QuickTime movie

2009-04-21 Thread douglas welton
To implement a fast (scan) forward or backward, simply set the movie's playback rate to a value greater than 1.0 ( or -1.0 for going backward). You'll want to experiment with want looks best for you, but a typical value might be 2.0, 4.0, 8.0... you get the picture. Depending on how you wa

Re: Fast Forward and backward about QuickTime movie

2009-04-21 Thread Mike Abdullah
Search the archives; this has come up quite a bit. -[QTMovie setRate:] On 21 Apr 2009, at 15:39, Bright wrote: Hi, By using the "-stepForward:" and the "-stepBackward:" methods of the QTMovie class, I realized the forward/backward a frame when I click the corresponding buttons. But my purpo

Fast Forward and backward about QuickTime movie

2009-04-21 Thread Bright
Hi, By using the "-stepForward:" and the "-stepBackward:" methods of the QTMovie class, I realized the forward/backward a frame when I click the corresponding buttons. But my purpose is to implement fast forward and fast backward when I press the corresponding buttons for a while. The result

Re: MDItemCopyAttribute and kMDItemFinderComment

2009-04-21 Thread Michael Tsai
On Apr 21, 2009, at 8:04 AM, Chris Idou wrote: I've got a program which uses MDItemCopyAttribute to get the kMDItemFinderComment, and I was playing around testing it, by changing the value in the Finder and seeing if the value changed in my program, and they ended up out of synch. It ends up

[OT] Re: MDItemCopyAttribute and kMDItemFinderComment

2009-04-21 Thread Alastair Houghton
On 21 Apr 2009, at 13:04, Chris Idou wrote: I've got a program which uses MDItemCopyAttribute to get the kMDItemFinderComment, and I was playing around testing it, by changing the value in the Finder and seeing if the value changed in my program, and they ended up out of synch. It ends up tha

Re: Notifications for the low battery...?

2009-04-21 Thread Gregory Weston
Anshul jain wrote: I am developing a small Application to perform a Task. Which can drain lot of battery(in Laptops). IOKit provides the APIs to get the battery status but i was not able to find the Notification which can notify the application when the battery is Low. So I w

Re: Implementing code completion ...

2009-04-21 Thread WT
Hi Mic, I'm going to sound like a broken record because I mentioned tries here not too long ago, but code completion is a good example of searching for shared prefixes among strings, which is the prototypical use for the trie data structure. First you preprocess all known identifiers by b

MDItemCopyAttribute and kMDItemFinderComment

2009-04-21 Thread Chris Idou
I've got a program which uses MDItemCopyAttribute to get the kMDItemFinderComment, and I was playing around testing it, by changing the value in the Finder and seeing if the value changed in my program, and they ended up out of synch. It ends up that mdls returns a different value than xattr -

Implementing code completion ...

2009-04-21 Thread Mic Pringle
Hi, Does anyone have any ideas/examples/best practice suggestions on how best to go about implementing code completion within a NSTextview ? I've had a search via Google and CocoaBuilder but can't seem to find anything relevant. Thanks -Mic ___ Cocoa

Re: simulating nested classes in objective-c

2009-04-21 Thread Alastair Houghton
On 19 Apr 2009, at 23:22, Aroon Pahwa wrote: My first soltion was to prepend the name of the containing class to the name of the nested class so in the previous example I would end up with SomeContainerClass_ResultInfo and SomeOtherContainerClass_ResultInfo. My issue with this is that the

Re: Empty stack trace in crash reports

2009-04-21 Thread Alastair Houghton
On 20 Apr 2009, at 21:49, Seth Willits wrote: Alright, not strictly Cocoa related, but someone will surely know :) What are the empty threads that show up in a crash report? ie Thread 22 crashed, and there's 20 threads listed in the report, but 17-21 have no stack trace. Is this a thread th

Re: Tracking rects, tracking areas and events

2009-04-21 Thread Erik Österlund
Apr 21, 2009 kl. 1:40 AM skrev Quincey Morris: It's hard to say in general. NSTrackingArea is fairly easy to get started with, so I'd suggest you just experiment to find the best approach for you. Thanks for your help! I'll just mix around a little and see what happens. -Fisk

Re: How to play a sound file by Double-click in a tableview?

2009-04-21 Thread Kyle Sluder
2009/4/21 Bright : > Now, I want to play a sound file by double-click it. But, I didn't find the > method of this function. How to play a sound file by Double-click in a > tableview? Look at the documentation for -[NSTableView doubleAction] and NSSound. --Kyle Sluder ___

Re: Get the name of the method that called a method

2009-04-21 Thread Dave Keck
Hey, The first thing that comes to mind is throwing an exception, catching it, then accessing the NSException's -callStackReturnAddresses. From there, you'll need to turn the addresses into symbol names. I googled it a little bit and found these references: http://developer.apple.com/documentatio

How to play a sound file by Double-click in a tableview?

2009-04-21 Thread Bright
Hello everybody: I am writing an application about sound playing. I can add some sound files to my Xib's tableview. Now, I want to play a sound file by double-click it. But, I didn't find the method of this function. How to play a sound file by Double-click in a tableview? Thanks for all