Re: Official or correct explanation of numbers on the 1st column for every method/function call in process sample?

2015-03-17 Thread JongAm Park
Yup! Thank you, :) > On Mar 17, 2015, at 3:41 PM, Scott Ribe wrote: > > On Mar 17, 2015, at 4:26 PM, JongAm Park wrote: >> >> Then can the number of samples be interpreted as how long it took there... > > It can be taken as a very rough approximation of that. >

Re: Official or correct explanation of numbers on the 1st column for every method/function call in process sample?

2015-03-17 Thread JongAm Park
was 3 sec. Anyway.. Thank you very much for you explanation. JongAm Park > On Mar 17, 2015, at 3:11 PM, Greg Parker wrote: > > >> On Mar 17, 2015, at 1:52 PM, JongAm Park wrote: >> >> Hello, >> >> I know that questions on tools are not relevan

Re: Official or correct explanation of numbers on the 1st column for every method/function call in process sample?

2015-03-17 Thread JongAm Park
0.2 (14C109) Report Version: 7 Analysis Tool: /usr/bin/sample So, 1379 can mean 1379 / (6803/3) = (1379 * 3)/6803 sec. Thanks, > On Mar 17, 2015, at 3:11 PM, Greg Parker wrote: > > >> On Mar 17, 2015, at 1:52 PM, JongAm Park wrote: >> >> Hello, >> >&

Re: Official or correct explanation of numbers on the 1st column for every method/function call in process sample?

2015-03-17 Thread JongAm Park
, > On Mar 17, 2015, at 2:58 PM, Steve Mills wrote: > >> On Mar 17, 2015, at 15:52, JongAm Park wrote: >> >> Call graph: >> 1379 Thread_839846: Main Thread DispatchQueue_ >> + 1379 start (in Wirecast) + 52 [0x100a31074] >> + 1379 main (in Wirec

Official or correct explanation of numbers on the 1st column for every method/function call in process sample?

2015-03-17 Thread JongAm Park
so too. But is it really so? If there is a better mailing list for this kind of inquiry, please let me know. Thanks, JongAm Park ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to th

Re: How to add a window to a window list(or open document list) on a dock tile menu?

2015-01-27 Thread JongAm Park
solved. If someone work on their own framework written on top of Cocoa and run into similar problem like mine, I hope he would be able to find a clue from this post. :) Happy coding~ JongAm Park > On Jan 27, 2015, at 12:55 PM, Lee Ann Rucker wrote: > > -[NSApplicationDelegate applicatio

Re: How to add a window to a window list(or open document list) on a dock tile menu?

2015-01-27 Thread JongAm Park
> > You can customize everything except the recent documents; you get that for > free and can't get rid of it - no, not even if the user clears recent > documents from the main menu. > > On Jan 27, 2015, at 10:38 AM, JongAm Park wrote: > >> Hello, all. It has b

How to add a window to a window list(or open document list) on a dock tile menu?

2015-01-27 Thread JongAm Park
to be no explicit way to remove/add window list. Thank you. JongAm Park ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at

[Q] Difference in terms of when it sense that it's rotated?

2012-11-12 Thread JongAm Park
Hello, I noticed that iOS 5.x. has very strange problems in rotation especially in "launching time". While an app is being launched, it presents a logo image inside of a UIImageView and presents a main GUI screen. It's always on landscape mode. What is weird with iOS 5 is that it works as intend

Re: [Q] a view is associated with more than one view controller?

2012-10-25 Thread JongAm Park
nimated:completion:> 2. addChildViewController: What do you think about it? I'm switching to Windows mode by launching Visual Studio... :( Thank you. JongAm Park | ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: [Q] a view is associated with more than one view controller?

2012-10-25 Thread JongAm Park
Thank you, Baoming. I tried but it didn't work. Probably I need to chores around it more. I have a few things to do in mind. So, I will retry that. However, UIImagePickerController's view looks to be special as others said. Best, On 10/25/2012 12:53 AM, Baoming Tian wrote: Why not just add t

Re: [Q] a view is associated with more than one view controller?

2012-10-25 Thread JongAm Park
d relationship between the two view controller objects." Actually I tried it yesterday night, but it complaint that the view ( probably mean the view of UIImagePickerController ) doesn't support the orientation the app is running. I would like to read View controll

[Q] a view is associated with more than one view controller?

2012-10-25 Thread JongAm Park
its sounds like that it was possible to assign a view controller's view to other controller's view with previous iOS SDK, but looks to be changed recently. Does Apple recommend other approach to achieve the same goal? If anyone knows how to solve this problem, please show me your gu

Re: [Q] Cocoa Binding for filters applied to CALayer (JongAm Park)

2012-08-29 Thread JongAm Park
it doesn't matter whether to set filter by [self.imageLayer setFilter:...] or [m_imageLayer setFilter...] Is there any reason why it works like that? Thank you. JongAm Park ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: [Q] Cocoa Binding for filters applied to CALayer

2012-08-29 Thread JongAm Park
Hmm.. I found an interesting case here. I tried to add this message for a newly created button to set the inputRadius in code. - (IBAction)blurIt:(id)sender { [self setValue:@10.0f forKeyPath:@"imageLayer.filters.blur.inputRadius"]; } Then it works. It's very interesting that the bindi

[Q] Cocoa Binding for filters applied to CALayer

2012-08-29 Thread JongAm Park
Hello, I'm trying to refresh my knowledge on Core Animation, and reading Addison Wesley's Simplified Animation. I created a new project from the scratch to mimic what is explained in Chapter 6, which has a NSView on a main window. On that instance of NSView, a CALayer is added and it is the lay

Re: Cocoa-dev Digest, Vol 9, Issue 176

2012-03-15 Thread JongAm Park
insight posted here. :) Have a nice day, and I'm sorry for people I didn't reply to yet.. JongAm Park On 3/13/2012 5:00 PM, cocoa-dev-requ...@lists.apple.com wrote: Message: 11 Date: Tue, 13 Mar 2012 16:49:33 -0700 From: Jay Reynolds Freeman To: "Cocoa-Dev (Apple)" Subjec

Re: [Q] Why is the threading and UI updating designed to be done only on a main thread?

2012-03-14 Thread JongAm Park
On 3/14/2012 10:27 AM, Scott Ribe wrote: On Mar 14, 2012, at 11:23 AM, JongAm Park wrote: it didn't sound harsh in a jungle with full of male creatures. LOL! And you said your English was not so good. That was great! Well, I was not born in English-speaking country. So, sometimes my En

Re: [Q] Why is the threading and UI updating designed to be done only on a main thread?

2012-03-14 Thread JongAm Park
ully before going to multi (or more) threads. On Mar 14, 2012, at 11:09 AM, JongAm Park wrote: Well.. Yes. I understand what you mean. I just added the threading stuff in the discussion. Probably it is due to my English? I thought "just like..." could serve to express my understanding of y

Re: [Q] Why is the threading and UI updating designed to be done only on a main thread?

2012-03-14 Thread JongAm Park
Yes. I agree. That is one of the approach I'm thinking of when I handled similar issue with QuickTime. Thanks, On 3/14/2012 10:05 AM, Gary L. Wade wrote: On Mar 13, 2012, at 2:09 PM, JongAm Park wrote: In other words, the thread function may want to update UI like inserting a log messa

Re: [Q] Why is the threading and UI updating designed to be done only on a main thread?

2012-03-14 Thread JongAm Park
Well, Mr. Ribe. I'm sorry but I'm not inexperience with this domain. I'm not trying to solve this problem with more complicated model. I was to find out any rationale, I may not think of, behind the new model, and a well-established code pattern to solve it. JongAm Park On 3/

Re: [Q] Why is the threading and UI updating designed to be done only on a main thread?

2012-03-14 Thread JongAm Park
d some workaround when we reach a point where one model is not as great as others. :) JongAm Park ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at coc

Re: [Q] Why is the threading and UI updating designed to be done only on a main thread?

2012-03-14 Thread JongAm Park
you didn't understand my initial question and the extra stuff I put there. It's Ok though. JongAm Park ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact th

Re: [Q] Why is the threading and UI updating designed to be done only on a main thread?

2012-03-14 Thread JongAm Park
tone of voice. So, based on my experience with chatting programs, the speaker may not have any intention to offend. So, I'm a kind of neutral. Probably it was his style of talking but.. you know.. it didn't sound harsh in a jungle with full of male creatures. :) I appreciate your conc

Re: [Q] Why is the threading and UI updating designed to be done only on a main thread?

2012-03-14 Thread JongAm Park
tone of voice. So, based on my experience with chatting programs, the speaker may not have any intention to offend. So, I'm a kind of neutral. Probably it was his style of talking but.. you know.. it didn't sound harsh in a jungle with full of male creatures. :) I appreciate your concer

[Q] Why is the threading and UI updating designed to be done only on a main thread?

2012-03-13 Thread JongAm Park
y to gracefully terminate an app by quitting threads and main thread? Thanks, JongAm Park ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)

Re: [Q] loadView doesn't return?

2011-11-04 Thread JongAm Park
}]; [player play]; [player release]; }); }]; } On Nov 4, 2011, at 9:46 AM, JongAm Park wrote: > > Hello, > > I tried to use AV Foundation's playback capability. > So, by following AV Foundation Programmi

[Q] loadView doesn't return?

2011-11-04 Thread JongAm Park
Hello, I tried to use AV Foundation's playback capability. So, by following AV Foundation Programming Guideline, it wrote codes for Mac. ( The document is written for iOS. ) Also, I looked up "View Controller" sample codes and "AnimatedTableView". What is strange is that it doesn't return after

[Q] how to tell NSNotificationCenter to send posted noti?

2011-10-07 Thread JongAm Park
Hello, I have this kind of code. For NSComboBox, I defined to messages : 1. selectionDidChange 2. selectionIsChanging When a user selects other item in a combo box ( for containing list of tasks ) after changing the current one, I would like to have "selectionIsChanging" saves the new task in

Re: [Q] Handling "cancel" or "stop" button for NSProgressIndicator and on-going task

2011-09-01 Thread JongAm Park
, including most all of the notifications and even asynchronous movie-loading. That's why allocating a QTMovie on a background thread is not advised. / Thank you. JongAm Park On Sep 1, 2011, at 11:15 AM, Robert Martin wrote: > No - creating the QT Movie must happen on

Re: [Q] Handling "cancel" or "stop" button for NSProgressIndicator and on-going task

2011-09-01 Thread JongAm Park
Hmmm.. probably.. enterQTKitOnThread allows to create and initialize QTMovie objects on threads? On Sep 1, 2011, at 9:33 AM, JongAm Park wrote: > Hello, > > I wrote codes to processing images on a second thread and the main thread > displays and handles "progress dialog box&

[Q] Handling "cancel" or "stop" button for NSProgressIndicator and on-going task

2011-09-01 Thread JongAm Park
Hello, I wrote codes to processing images on a second thread and the main thread displays and handles "progress dialog box". Because it is not possible to create a "UI thread" according to Cocoa framework, I had the main thread process the progress dialog box, while a second thread process imag

Re: [Q] including omp.h?

2011-08-06 Thread JongAm Park
It didn't. That is why I asked. Thank you. On Aug 6, 2011, at 1:31 AM, Marcus Karlsson wrote: --On July 31, 2011 4:49:34 PM -0700 JongAm Park > wrote: Hello, Because gcc now supports OpenMP, we can use pragmas for OpenMP without doing any special steps except for setting "

[Q] including omp.h?

2011-07-31 Thread JongAm Park
Hello, Because gcc now supports OpenMP, we can use pragmas for OpenMP without doing any special steps except for setting "Enable OpenMP" and "-fopenmp". However, when I tried to use OpenMP functions like : int omp_get_max_threads(void) omp.h should be included. However the location of omp.h is n

Re: [GM-help] [Q] calling OpenMP functions in a thread function for NSThread?

2011-07-29 Thread JongAm Park
On Jul 29, 2011, at 2:03 PM, Bob Friesenhahn wrote: > On Fri, 29 Jul 2011, JongAm Park wrote: >> >> is there a problem in calling OpenMP functions in a thread function? > > Possibly there is, however, I recall that your main program uses Objective C. > Perhaps the

[Q] calling OpenMP functions in a thread function for NSThread?

2011-07-29 Thread JongAm Park
Hello, I'm using a GraphicsMagick library in my project. However, there I found a very interesting behavior. If I create an instance of Magick::Image in a normal method, it works OK. However, if it is implemented in a thread function, it crashes when it calls omp_get_max_threads(). I tried t

Re: Does anyone else dislike Xcode 4?

2011-07-25 Thread JongAm Park
Oh... BTW who started this thread in cocoa-dev mailing list? It should be go to xcode-users! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-

Re: Does anyone else dislike Xcode 4?

2011-07-25 Thread JongAm Park
On Jul 25, 2011, at 10:42 AM, Nick Zitzmann wrote: > On Jul 25, 2011, at 10:02 AM, JongAm Park wrote: > >> I don't know how this thread was started but, yeah, I don't like the Xcode 4. >> >> The reason is : >> >> - Requires too much scree real-es

Re: Does anyone else dislike Xcode 4?

2011-07-25 Thread JongAm Park
have liked Xcode ( pre Xcode 4 ). I'm a long time Windows programmer while at the same time a Mac programmer. So, I have enough knowledge to compare the both. I really want Apple to make Xcode 4 make better. However, I also notice that there are many people who just like Xcode 4 because Apple

Re: [Q] Directory & File enumeration order?

2011-07-20 Thread JongAm Park
it is practically fast or not is.. yeah.. it will be OK for the project I work on now. Thank you. JongAm Park On Jul 20, 2011, at 3:28 PM, Jens Alfke wrote: > > On Jul 20, 2011, at 2:09 PM, JongAm Park wrote: > >> How can I make it retrieve in this order? >> >> Clip_0016_000

Re: [Q] Directory & File enumeration order?

2011-07-20 Thread JongAm Park
is to be chosen, it can be great. Thank you. On Jul 20, 2011, at 2:12 PM, Evadne Wu wrote: > Maybe instead of using the directory enumerator, fetch all the contents as an > NSArray and sort that? > > -ev > > On Jul 21, 2011, at 05:09, JongAm Park wrote: > >>

[Q] Directory & File enumeration order?

2011-07-20 Thread JongAm Park
mple%20Video/Upper/Reel/Clip_0016/Media/Clip_0016_00.dpx How can I make it retrieve in this order? Clip_0016_00.dpx, Clip_0016_01.dpx, Clip_0016_02.dpx, Thank you. JongAm Park ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pleas

[Q] Using GraphicsMagic++ in a thread method?

2011-07-13 Thread JongAm Park
Hello, all. I decided to use GraphicsMagic++ in my Objective-C++/Cocoa project. When I created Magick::Image variable statically in a method which is to be called by NSInvocationOperation, it receives "EXC_BAD_ACCESS" error. However, if it is declared outside of the thread method, there is no s

Re: [Q] Will the be any problem in implementing an NSArray method using fast enumeration?

2011-06-30 Thread JongAm Park
Wow.. great information! Thank you very much for sharing your idea! It definitely helped me! JongAm Park On Jun 30, 2011, at 2:41 PM, Quincey Morris wrote: > > On Jun 30, 2011, at 13:51, JongAm Park wrote: > >> The rationale behind "enumerator" pattern is t

Re: [Q] Will the be any problem in implementing an NSArray method using fast enumeration?

2011-06-30 Thread JongAm Park
ex iteration or enumerator pattern. Also, fast enumeration is a language feature. So, if Objective-C without fast enumerator is used, methods written with fast enumerator would not work. So, my question was originally for that. :) Anyway, it's not big deal now. Thank you :) JongAm Park On Jun 3

[Q] Will the be any problem in implementing an NSArray method using fast enumeration?

2011-06-30 Thread JongAm Park
Hello, I wrote a method for NSArray. - (NSArray *)objectsForKey:(id)key { NSMutableArray *objectsArray = [NSMutableArray arrayWithCapacity:10]; for( id item in self ) { [objectsArray addObject:[item objectForKey:key]]; } r

[Q] What options to use to display menu bar in a full screen mode

2010-10-24 Thread JongAm Park
Hello, For PDFView, I used enterFullScreenMode:WithOptions: After looking up some sample codes, I found out that what they used in examples, • From A View to A Movie • From A View to A Picture are different from what is explained in the document. Anyway, I tried many options in

Re: [Q] Using NSInvocation vs. selector with NSTimer

2010-10-18 Thread JongAm Park
On 10/18/2010 9:45 AM, Keary Suska wrote: On Oct 18, 2010, at 9:00 AM, JongAm Park wrote: Is there any benefit in using it? My guess is that an NSInvocation instance is used repeatedly, but using the "selector" based method is not inconvenient for the most of cases. Is there

Re: [Q] Using NSInvocation vs. selector with NSTimer

2010-10-18 Thread JongAm Park
On 10/17/2010 4:11 PM, Joar Wingfors wrote: On 17 okt 2010, at 15.51, JongAm Park wrote: Although I know that NSInvocation was added (from Leopard?), I didn't use it much. NSInvocation predates Mac OS X... Oh. right. I forgot that. Is there any benefit in using it? My guess is th

[Q] Using NSInvocation vs. selector with NSTimer

2010-10-17 Thread JongAm Park
Hello, I have used scheduledTimerWithTimeInterval:target:selector:userInfo:repeats: or timerWithTimeInterval:target:selector:userInfo:repeats: Although I know that NSInvocation was added (from Leopard?), I didn't use it much. Is there any benefit in using it? My guess is that an NSInvocation i

[Q] How to handle mouseDown when PDFView is in full screen mode?

2010-10-10 Thread JongAm Park
Hello, I would like to implement on-screen buttons like the ones Preview presents in its full screen mode. I used this to enter full screen mode. enterFullScreenMode: withOptions: When it becomes full screen mode, I pressed mouse button, but it is not processed. @implementation PDFView ( Ful

[Q] Is this a bug in MPMoviePlayerController? Then how to work around?

2010-07-13 Thread JongAm Park
client side, i.e. MPMoviePlayerController, it said that the server information was wrong and rejected it. Is this a bug? How to work around it, then? Thank you. -- JongAm Park Visit my technical blog at http://jongampark.wordpress.com ___ Cocoa-dev

Proposal for category in plugin environment

2010-04-04 Thread JongAm Park
Apple people thinking about the same or similar mechanism? If not, what do you think about my proposal. ( I don't mean that I will implement it, but... just suggesting.. ) Thank you. JongAm Park ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.co

Re: [Q] copy operation and authorization

2009-11-12 Thread JongAm Park
Thank you all. It works now. What is interesting was that it didn't require to use PreAuthoriazation flag when invoking "cp". I think the "Factored Application" case in the document was about an external program which are not Unix commands but something else. Tha

Re: [Q] copy operation and authorization

2009-11-12 Thread JongAm Park
Thank you. I will try AuthorizationExecuteWithPrivileges(). JongAm Park Nick Zitzmann wrote: On Nov 12, 2009, at 11:34 AM, JongAm Park wrote: You cannot escalate the privileges of a running task on Mac OS X. So if a running task does not have root privileges, then it never will

Re: [Q] copy operation and authorization

2009-11-12 Thread JongAm Park
Volker Am 12.11.2009 um 18:44 schrieb JongAm Park: Hello, I'm trying to copy a file from a desktop to a /Library/Application Supports/../Plugins directory. Because the directory requires to obtain system administrator's privilege I should be authorized. so, I wrote codes like this.

Re: [Q] copy operation and authorization

2009-11-12 Thread JongAm Park
Nick Zitzmann wrote: On Nov 12, 2009, at 10:44 AM, JongAm Park wrote: NSString *PlugInPath = [NSString stringWithString:@"/Library/Application Support/Final Cut Pro System Support/Plugins/test3.valm"]; Apologies for being a little pedantic here, but calling +stringWith

Re: [Q] copy operation and authorization

2009-11-12 Thread JongAm Park
I'm sorry, but the scenario doesn't apply to mine. Thank you. Sherm Pendley wrote: On Thu, Nov 12, 2009 at 12:44 PM, JongAm Park wrote: NSString *sourceFile = [NSString stringWithFormat:@"%@/Desktop/test3.valm", NSHomeDirectory()]; Have you tried this

[Q] copy operation and authorization

2009-11-12 Thread JongAm Park
Hello, I'm trying to copy a file from a desktop to a /Library/Application Supports/../Plugins directory. Because the directory requires to obtain system administrator's privilege I should be authorized. so, I wrote codes like this. - (void)awakeFromNib { [self authorize]; } - (void) appl

[Q] How to populate custom button of QuickTime media control?

2009-10-12 Thread JongAm Park
uickTime X doesn't seem to have the custom button. if it doesn't have one, is there any other alternative way? Thank you. JongAm Park ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: [Q] CFStringGetCStringPtr( ..., kCFStringEncodingUTF8)

2009-06-23 Thread JongAm Park
instance's internal representation and the encoding being passed. The best encoding for a particular string is CFStringGetFastestEncoding(). Aki On Jun 23, 2009, at 12:13 PM, JongAm Park wrote: Oh.. one more thing... I think you didn't catch what I wanted to say. It will be OK to return NU

Re: [Q] CFStringGetCStringPtr( ..., kCFStringEncodingUTF8)

2009-06-23 Thread JongAm Park
eption mentioned further below.) What you do with falling back to CFStringGetCString is right laurent On Jun 23, 2009, at 7:26 PM, JongAm Park wrote: Hello. I didn't find any CoreFoundation mailing list, so I post my question about CFStringEtCStringPtr() here in Cocoa m

Re: [Q] CFStringGetCStringPtr( ..., kCFStringEncodingUTF8)

2009-06-23 Thread JongAm Park
What you do with falling back to CFStringGetCString is right laurent On Jun 23, 2009, at 7:26 PM, JongAm Park wrote: Hello. I didn't find any CoreFoundation mailing list, so I post my question about CFStringEtCStringPtr() here in Cocoa mailing list. My problem is that CFStringGetCStringP

[Q] CFStringGetCStringPtr( ..., kCFStringEncodingUTF8)

2009-06-23 Thread JongAm Park
Hello. I didn't find any CoreFoundation mailing list, so I post my question about CFStringEtCStringPtr() here in Cocoa mailing list. My problem is that CFStringGetCStringPtr( ..., kCFStringEncodingUTF8) doesn't convert a string passed through its first parameter and returns 0 on English syst

Re: [Q] Strange Drag & Drop from my app to FCP project window

2009-03-26 Thread JongAm Park
On Mar 26, 2009, at 11:10 AM, JongAm Park wrote: Hello, Computer-Training segleler I also tried using stringByAppendingPathExtension, but it returned even worse result. The stringByAppendingPathExtension removes one slash from "file://localhost/./.../ ..." a

[Q] Strange Drag & Drop from my app to FCP project window

2009-03-26 Thread JongAm Park
case here. success is 1% intuition and 99% sweat Am 25.03.2009 um 19:12 schrieb JongAm Park: Thanks for your commenting, but... If it s not recognized as path, the D&D doesn't work. Also, I checked like this : For still images : (gdb) po fileName file://localhost/Volumes/NEX

Re: [Q] Strange Drag & Drop from my app to FCP project window

2009-03-25 Thread JongAm Park
Extension] tga For mov files : (gdb) po fileName file://localhost/Volumes/NEXIO64/MOV/By the Way3 C.mov (gdb) po [fileName lastPathComponent] By the Way3 C.mov (gdb) po [fileName pathExtension] mov So, there should be no problem. Thanks, JongAm Park . On Mar 25, 2009, at 10:56 AM,

[Q] Strange Drag & Drop from my app to FCP project window

2009-03-25 Thread JongAm Park
Hello, all I wrote lines of codes for Drag&Drop from an NSTableView of my program to the FCP. What is strange is that file extension for dragged image file is shown on the FCP's project window, while that of dragged mov file is not. If the same image file is dragged and dropped from the Finde

Re: [Q] inconsistent naming for Core Graphics and Foundation?

2009-03-15 Thread JongAm Park
Thank you for your reply. So, I understood that the naming convention was changing. And.. yes.. I know I should accept what Apple makes, but I just was just curious. Thank you. On Mar 15, 2009, at 1:21 AM, Ken Thomases wrote: On Mar 15, 2009, at 2:39 AM, JongAm Park wrote: On Mar 15

Re: [Q] inconsistent naming for Core Graphics and Foundation?

2009-03-15 Thread JongAm Park
ns related to CGRects, by searching the API for terms that contain "CGRect". I actually prefer it this way. --Andy On Mar 15, 2009, at 2:43 AM, JongAm Park wrote: Hello, all I'm just curious about the naming convention for Core Graphics and Foundation. For example, NSMa

[Q] inconsistent naming for Core Graphics and Foundation?

2009-03-14 Thread JongAm Park
Hello, all I'm just curious about the naming convention for Core Graphics and Foundation. For example, NSMakeRect and CGRectMake are similar but different about where the "Rect" is in its method name. What is even worse is NSPointInRect and CGRectContainsPoint. So, if a person is used to the

Re: [Q] efficient or good model for send/receive with streams scheduled in runloop?

2009-01-29 Thread JongAm Park
e out what he really wants. By the way I asked somewhat general design using a delegate message triggered by a run-loop. You see such kind of model from many books on network programming. Anyway, thank you for your comment again. JongAm Park ___

[Q] disposing of a stream object when NSStreamEventEndEncounterered is received?

2009-01-27 Thread JongAm Park
hanism? is there any way to keep the stream open? Thanks, JongAm Park ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.ap

[Q] efficient or good model for send/receive with streams scheduled in runloop?

2009-01-27 Thread JongAm Park
routine already locked. ) Under this situation, is there a good network programming model or pattern? How should I solve this issue? Thank you. JongAm Park ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mod

Re: [Q] How will the Pasteboard manager be changed?

2008-12-19 Thread JongAm Park
' using the Cocoa, but I guess I need to use Carbon functions. By the way, can the Pasteboard type and NSPasteboard be intermixed like CFStringRef and NSString? Thanks, JongAm Park Jim Correia wrote: On Dec 19, 2008, at 5:39 PM, JongAm Park wrote: So, can anyone tell me how the Carbon&

[Q] How will the Pasteboard manager be changed?

2008-12-19 Thread JongAm Park
Hello. I'm implementing some logic to enable drag from my application's NSTableView and drop on the Final Cut Pro's project. I found out that it was not possible with NSFilenamesPboardType. When I compared it a drag&drop from the Finder to the FCP, the one between the Finder and the FCP conta

[Fwd: Re: [Q] How to let the pasteboard know a file type?]

2008-12-19 Thread JongAm Park
. P.S. By the way, is it normal to put 'furl' and 'hfs' flavor when NSFilenamesPboardType is used? Because an array of file names are added to the pasteboard, I thought that only file name strings were added. But it turned out no-so-true. JongAm Park wrote: > Hi, > &g

Re: [Q] How to let the pasteboard know a file type?

2008-12-19 Thread JongAm Park
nything wrong how I use the NSCreateNSFilenamePboardType? How to use it properly? Thank you in advance. P.S. By the way, is it normal to put 'furl' and 'hfs' flavor when NSFilenamesPboardType is used? Because an array of file names are added to the pasteboard, I thought

[Q] How to let the pasteboard know a file type?

2008-12-18 Thread JongAm Park
Hi, Thanks to a utility program, called DragPeeker X, I found out some clue why the FCP treated dragged file as a file with unknown type. When I dragged the same file from the Finder to the FCP, it shows : Number of Items: 1 1. Item Reference: 19884c10 Item Bounds (tlbr): { 86, 1,

[Q] availableTypeFromArray returns NXFileContentsPboardType instead of NSFileContentsPboardType

2008-12-18 Thread JongAm Park
Hello, all. I'm struggling to enable drag&dropping to Final Cut Pro's project window from my application. While I was trying to figure out how to, I found this strange thing. NSArray *supportedTypes = [NSArray arrayWithObject:NSFileContentsPboardType]; NSString *matchingType = [pboard avai

[Q] What type the Final Cut Pro expect when a file is drag&dropped to its project?

2008-12-18 Thread JongAm Park
Hello. I wrote some codes which will enable drag&drop from my application to FCP's project. Before implementing it, I tried dragging and dropping a file from a Finder to an FCP's project which was opened with the FCP. After confirming that the FCP supports drag&drop from the Finder, I started

Re: [Q] How to add nested items to NSOutlineView?

2008-11-06 Thread JongAm Park
work. So, we should use their special methods prepared for the binding purpose! It would be much nicer if they put the examples in their NSTreeController, NSOutlineView document! Special Thanks! JongAm Park Benjamin Stiglitz wrote: However, if I get reference of an item in existing view and i

Re: [Q] How to add nested items to NSOutlineView?

2008-11-06 Thread JongAm Park
Thank you for your answer. I found same question asked by other person in Cocoa mailing list. http://www.cocoabuilder.com/archive/message/cocoa/2008/4/7/203440 and an answer refers http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaBindings/Concepts/Troubleshooting.html#//apple_ref

[Q] How to add nested items to NSOutlineView?

2008-11-05 Thread JongAm Park
Hello. I'm writing a "Source List View" using the NSOutlineView and an NSTreeController. It should work on Mac OS X 10.4 Tiger, so I can't use NSTreeNode. My Source List View is based on Mark Alldritt’s source list view, http://www.latenightsw.com/blog/?p=29. Problem is that when a data sourc

Re: IB plugins

2008-10-03 Thread JongAm Park
locate "Interface Builder Kit". If you click it, there is only one item, "Library Template" which is subtitled as IBLibraryObjectTemplate. It is the one you want. I hope this clarify your question. JongAm Park ___ Coco

[Q] Which mailing list is for the functions like valloc()?

2008-09-26 Thread JongAm Park
Hello, all. I think I found a bug in the valloc(). However, before reporting it to Apple, I would like to ask if it is really a bug or if anyone also noticed the problem. So, I tried figuring out what mailing list is for, but couldn't determined it. Can it be here, Cocoa-dev, or others like *D

[Q] Custom NSFormatter and IB's Cocoa Simulator

2008-09-22 Thread JongAm Park
Hello. I tried making my own custom NSFormatter by following the guide, "Interface Builder Plug-In Programming Guide" However, when I tried my NSFormatter subclass using the "Simulate Interface" menu item of the Interface Builder, it rasied : An uncaught exception was raised *** - [NSKeyedU

Re: [Q] How to enable Copy & Paste in a text field of a Final Cut Pro plugin window?

2008-09-05 Thread JongAm Park
Darrin Cardani wrote: On Sep 5, 2008, at 11:26 AM, JongAm Park wrote: How are you doing, all? I wrote a Final Cut Pro plugin which had a few NSTextFields on it. What I figured out is that the Final Cut's Edit=>Copy & Paste menu are not enabled and it doesn't allow copy a

[Q] How to enable Copy & Paste in a text field of a Final Cut Pro plugin window?

2008-09-05 Thread JongAm Park
How are you doing, all? I wrote a Final Cut Pro plugin which had a few NSTextFields on it. What I figured out is that the Final Cut's Edit=>Copy & Paste menu are not enabled and it doesn't allow copy and paste text for the text fields on the plugin window. I tried checking how other FxP plug

[Q] SFPreferenceView and authorize as admin?

2008-08-21 Thread JongAm Park
I don't think it is not possible.. but.. does anyone know how to? Thank you. Original Message Subject:[Q] SFPreferenceView and authorize as admin? Date: Wed, 20 Aug 2008 14:53:34 -0700 From: JongAm Park <[EMAIL PROTECTED]> To: cocoa-dev Hello,

[Q] SFPreferenceView and authorize as admin?

2008-08-20 Thread JongAm Park
Hello, all. Does any of you know how to authorize a user as an admin user using the SFPreferenceView? I'm writing a preference pane for the System Preference. What this custom preference pane does are : - Display system wide setting, but until a user clicks the "lock" icon, a user is not all

[Q] Using SFAuthorizationView in a Preference Pane project

2008-08-20 Thread JongAm Park
erences for the system-wide setting! I checked if the system wide setting is saved in other places already, but I couldn't find it. Can someone give me some advice? Thank you. JongAm Park ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

Re: [Q] is NSFileHandle's writeData method faster than the FSWriteFork?

2008-08-07 Thread JongAm Park
very much for the information! Best regards, JongAm Park James Bucanek wrote: That probably won't gain you that much. Fractional page writes will still requires FSWRriteFork to first copy the data into its file buffer, which is where I suspect much of your current overhead is. Writing

Re: [Q] is NSFileHandle's writeData method faster than the FSWriteFork?

2008-08-03 Thread JongAm Park
Thank you very much for the valuable information. I will try the 1st and the 3rd options, because the 2nd option will not be easily applicable withouth refactoring the current code a lot. Thank you again, Regards, JongAm Park On Aug 2, 2008, at 7:51 AM, James Bucanek wrote: JongAm Park

Re: [Q] is NSFileHandle's writeData method faster than the FSWriteFork?

2008-08-01 Thread JongAm Park
erformance and found out that the most of the time were spent with the FSWriteFork() function. Probably other parts should be streamlined also, but it would impact significantly if the file write can be faster. Thank you. On Aug 1, 2008, at 6:04 PM, Jens Alfke wrote: On 1 Aug '08, at

[Q] is NSFileHandle's writeData method faster than the FSWriteFork?

2008-08-01 Thread JongAm Park
method, writeData message of the NSFileHandle. Does anyone know if the writeData's performance compared to the FSWriteFork()? Or can anyone suggest other methods to take? Thank you. JongAm Park ___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

Re: [Q] [NSValue valueWithBytes: objCType:]

2008-07-31 Thread JongAm Park
Hello. Well, I did review the code as usual. It is interesting that the exactly same memory blocks were allocated for the interested data and dataDesc. So, it looked like that it is referenced, although they were not. Thanks. Jens Alfke wrote: Something's fundamentally wrong with your code, i

[Q] [NSValue valueWithBytes: objCType:]

2008-07-31 Thread JongAm Park
y bzeroing the original, and how it is seen in the recover function. There is another message, dataWithBytesNoCopy:length:. It made me think that the dataWithBytes:length copies, while the dataWithBytesNoCopy:length just references it. The explanation on the dataWithBytes:length: is : &quo

Re: [Q] Any document that shows differences of Cocoa, programming for Mac and for the iPhone/iPod touch?

2008-07-15 Thread JongAm Park
Oh.. Thank you very much for the links. Actually I know the KATI blog. I even bookmarked it before, but I didn't noticed the article! I found her blog from flickr link at Cocoa Head LA! http://www.flickr.com/photos/kepi/2586194046/ What is more interesting here is that our beloved phone from a

Re: [Q] Any document that shows differences of Cocoa, programmiing for Mac and for the iPhone/iPod touch?

2008-07-15 Thread JongAm Park
Thanks for the reply, Mr. Arentz. Yeah.. I read the document but it doesn't really give me some idea on why it is made and why we need to use it. Until the Tiger, views in a NIB file could be loaded, couldn't it? So, I agree with your last comment. :) The NSViewController documentation does a g

  1   2   >