Construct type array from CGImageSourceCopyTypeIdentifiers

2009-03-18 Thread Jushin
When I construct types for images, I just used CGImageSourceCopyTypeIdentifiers as follows for now: BTW is there any way to construct a types array with selected identifiers? For example, I just need PNG and JPEG identifiers. Thanks ___ Cocoa-dev

NSTableView Drag and Drop doesn't work

2009-03-17 Thread Jushin
In MyDocument.xib, I have a table and an array list (dataList) for data source. Then I created a subclass of NSArrayController (dataListController) and linked the array list (dataList) to this class. And in the dataListcontroller, I made an outlet of the table and made a connection. Ok, that's my

Re: NSTableView Drag and Drop doesn't work

2009-03-17 Thread Jushin
I did further investigation and found the reason. It was because the problem of regsterForDraggedTypes I just wanted to filter out images, so I used following to define types: NSArray* types = (NSArray*)CGImageSourceCopyTypeIdentifiers(); and then set it as, [tableView

Automatically select current system's timezone from popup button

2009-03-09 Thread Jushin
I have a NSPopUpButton list, which contains name of timezones. When I construct the popup button, I get the list of the timezone using [NSTimeZone knownTimeZoneNames] and then constructed another array using [NSTimeZone timeZoneWithName:name] So, basically, the popup button has the list of

integrate google map in cocoa app?

2009-03-03 Thread Jushin
I wonder if it is ok to integrate google map in a cocoa application using webkit. I know it's possible, but I was also told that google map only can be used within a web browser. Do you guys have any experience with this? ___ Cocoa-dev mailing list

Getting NSDate from EXIF of a image

2009-03-02 Thread Jushin
I need to get time and date from EXIF of a image. Following is the code snippet I used: NSDictionary *metadata = (NSDictionary *) CGImageSourceCopyPropertiesAtIndex(source, 0, NULL); NSMutableDictionary *muMetadata = [[metadata mutableCopy] autorelease]; [metadata release];

Re: Getting NSDate from EXIF of a image

2009-03-02 Thread Jushin
PM, Jushin coco...@gmail.com wrote: I need to get time and date from EXIF of a image. Following is the code snippet I used: NSDictionary *metadata = (NSDictionary *) CGImageSourceCopyPropertiesAtIndex(source, 0, NULL); NSMutableDictionary *muMetadata = [[metadata mutableCopy] autorelease

How to make a message disappeared at certain amount of time passed

2009-02-28 Thread Jushin
I have to display a message (using NSLabel) to a user, but want to make it disappeared after certain amount of time (e.g. 5 seconds or so). How should I do this? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Creating a window when pressing a button

2008-12-09 Thread Jushin
In my application, I have to open a form window when a user press a button. It is somewhat similar to Apple Mail. In Apple Mail, if you click New Message button from the toolbar, a New Message window is appeared. For now, what I did was something like this: In IB, I added a window (or a panel),

Fixed width of left pane in NSSplitView

2008-12-08 Thread Jushin
I would like to have fixed with of the left pane in NSSplitView when I resize the window, and I found this code from google search. http://www.cocoabuilder.com/archive/message/cocoa/2008/3/28/202614 It says, === Your split view delegate should implement the following method:

Re: Fixed width of left pane in NSSplitView

2008-12-08 Thread Jushin
Could you tell me more in detail? It makes me more confusing :( Sorry for novice question. On Mon, Dec 8, 2008 at 3:29 AM, Benjamin Dobson [EMAIL PROTECTED] wrote: On 8 Dec 2008, at 08:03:51, Jushin wrote: However, I have no idea how to do this. Should I create a subclass of NSSplitView

Building smart folder list as in iTunes

2008-10-15 Thread Jushin
I would like to add a left pane (I don't know what to call this) as in iTunes or Apple Mail. In this pane, I want make place a library, folders, and smart folders. Where should I start? I couldn't find any example code or documentation regarding this. Please someone help me how to do this.