If you were me, how do you build mind map app on cocoa?

2010-07-24 Thread Sumin Kim
I am a new to Cocoa and planning to build an app like mind map. This is my guess on how to build mind map like app on Cocoa. Please check and let me know if you know any more efficient approach or some missing pieces I should consider. First of all, I need consider data model. I think I hav

Re: Erasing drawn content

2010-06-09 Thread Paul Kim
I might as well take a stab at this: - Draw into an NSImage, filling the shapes as fully opaque. - Composite/draw the image into your view with whatever alpha you need via the "fraction" argument. - Draw the outlines, which I assume you want to be fully opaque, directly into the view. Haven't t

Getting an image of an NSTableView row

2009-08-24 Thread Paul Kim
I'm trying to get an image of an NSTableView row. Sounds simple but if you actually try it, you'll find that NSTableView is particularly resistant to this. Here is what I am looking for: - The row must look like how it does to the user. In particular, the background must look like as it doe

Re: How to fill rectangle under vertical scroller?

2009-06-20 Thread Sumin Kim
> > >> > > You need to place a view here and do the custom drawing in the view. To > place the view, you need to subclass NSScrollView and override the -tile > method to place the view in that corner. The scrollview subclass will also > typically own the custom view. > > Here's an example from the

Re: How to fill rectangle under vertical scroller?

2009-06-18 Thread Sumin Kim
> > > > You need to place a view here and do the custom drawing in the view. To > place the view, you need to subclass NSScrollView and override the -tile > method to place the view in that corner. The scrollview subclass will also > typically own the custom view. > > Here's an example from the arc

Re: How to fill rectangle under vertical scroller?

2009-06-18 Thread Sumin Kim
Thanks for the information. Those frameworks seems very helpful for the future even though they are not solving my problem right now. Incidentally, I found out that I know the writer of HIMBIkAppKit personally. ;-) Thanks, On Thu, Jun 18, 2009 at 6:15 AM, Scott Andrew wrote: > Have you looked a

Re: How to fill rectangle under vertical scroller?

2009-06-16 Thread Sumin Kim
> > >> > That's not part of the scroller. Assuming you're working with NSTableView, > this is the cornerView, which you can set up separately. > Yes, you are right. I am working with table. Of course I tried to use cornerView. But as far as I understood with my experience dealing with cornerView,

How to fill rectangle under vertical scroller?

2009-06-16 Thread Sumin Kim
Hi, all. I am drawing custom scroller for my application and could change color and looks of knob, arrows, and knob slot. But I still cannot change the color of a rectangle located in right bottom corner under vertical scroller. I could not find out how to handle the area. Any advice will be appre

Re: Archiving/unarchiving root objects using instance methods

2009-03-09 Thread Paul Kim
Thanks for the response but your code changes the archive format. I have existing files encoded already with the "root" key and decodeObject: without a key won't do it. As mentioned before, yes, I can specify the root key but it appears to not be official

Archiving/unarchiving root objects using instance methods

2009-03-09 Thread Paul Kim
"inconveniently." And yes, for practical reasons, using the "root" key will work because of backwards compatibility but it would be nice if there were an official way to do this (or some semi-official word that using the "root" key is ok). Thanks, Paul Kim

Re: Moving oneself to /Applications (or ~/Applications)

2009-02-23 Thread Paul Kim
there for a lengthy debate on it, some of which has been already rehashed here. Paul Kim ___ 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 coco

Re: Controlling line-breaking in a text view

2008-08-12 Thread Andy Kim
Many thanks to everyone who helped in this thread. I wonder if this is a larger bug in the text system? I was going to suggest just inserting the Unicode character "zero-width no-break space" (U +FEFF) after the slash, but when I tried it (in TextEdit) I got the very phenomenon you describe

Controlling line-breaking in a text view

2008-08-09 Thread Andy Kim
I think it's better than the default behavior but still not ideal. So how can I make it wrap exactly the way I want? - Andy Kim smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

Re: NSStatusItem custom view with menu

2008-07-04 Thread Andy Kim
Another way to do this is to implement the NSMenu delegate methods: - menuWillOpen: - menuDidClose: You would then set the highlighted variable there. I think it'll make the code easier to read. You need to set the menu's delegate for this to work (obviously). - Andy Kim On J

Get view events

2008-07-03 Thread Tran Kim Bach
Hi everybody, One more newbie question. I cannot get events of the view after I used setContentView method of my NSBox object. Here is what I am doing. I have a main window with a NSBox object in it. I create a view ( A) using Interface Builder and use a class along with A having the view A outlet

Re: Implementing NSOutlineView autosaveExpandedItems with CoreData

2008-07-01 Thread Andy Kim
em is the model object itself. In your case, I'm fairly positive that you do need to return the NSTreeNode object. Instead of fetching the model object, walk the controller's content tree looking for the right representedObject with the UID. - Andy Kim smi

Re: Implementing NSOutlineView autosaveExpandedItems with CoreData

2008-06-30 Thread Andy Kim
[self expandItem:[[self dataSource] outlineView:self itemForPersistentObject:pobj]]; } } You can use those two methods to save the expanded state to the user defaults and then restore later on exactly when you need to. - Andy Kim smime.p7s Description: S/MIME cryptographic sign

Re: trackmouse problems in Leopard

2008-06-28 Thread Andy Kim
might not be exactly what you want, but I'm pretty sure your solution is a good implementation of this method. Andy Kim On Jun 28, 2008, at 6:24 AM, Moray Taylor wrote: Hi, hope someone can help... I have an app that uses a custom NSCell that implements the - (BOOL)trackMouse:(NS

Re: Newbie question: error in creating a NSData object using handle (Resource Management)

2008-06-26 Thread Tran Kim Bach
Wow, thanks Ken a lot.About the endian issues, I have a compatible swap function to convert data to Big-endian (and vice verse). Then, I will correct big-endian issues. I may know where the problem is. When I read to your suggestion, On Fri, Jun 27, 2008 at 6:11 AM, Ken Thomases <[EMAIL PROTECTED]

Re: Newbie question: error in creating a NSData object using handle (Resource Management)

2008-06-26 Thread Tran Kim Bach
> > > if((type2 =='PREC')&&([resID intValue]== 302)) > There is a typo in the above code line:It should be: if((resType1 =='PREC')&&([resID intValue]== 302)) > Regards, Bachtk ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Newbie question: error in creating a NSData object using handle (Resource Management)

2008-06-25 Thread Tran Kim Bach
t the executable file inside the app package(under contens/MacOS/) not the file with the extension .exe. But you're right. I has just started to use Mac OS for 3 months :). I will try to read up your suggested information. On Thu, Jun 26, 2008 at 12:58 AM, Kai <[EMAIL PROTECTED]> wrote:

Re: Newbie question: error in creating a NSData object using handle (Resource Management)

2008-06-25 Thread Tran Kim Bach
got the same problem. Now, when I confirmed the *dataHandle, it returned NULL but I don't know why? --Bach On Wed, Jun 25, 2008 at 3:36 PM, Ken Thomases <[EMAIL PROTECTED]> wrote: > On Jun 25, 2008, at 1:19 AM, Tran Kim Bach wrote: > > Hi folks,I'm a newbie to Cocoa. >

Newbie question: error in creating a NSData object using handle (Resource Management)

2008-06-24 Thread Tran Kim Bach
Hi folks,I'm a newbie to Cocoa. Recently, I'm working on a project relating to Resource Management. In my project, there's a part that I'm reading through the resources in a resource file. I'm using: int count = CountResources( typeName ); to get all resource that has the type "typeName", then loop

Re: symbol(s) not found

2008-06-09 Thread kim
On Jun 9, 2008, at 7:57 PM, Jens Alfke wrote: On 8 Jun '08, at 7:48 PM, kim wrote: As near as I can tell nothing at all has changed, the Calculate object is properly defined (no compiler warnings or errors) but it would seem that the symbol table is not up to date? (Not to nit-pick

NSCollectionView fade on load

2008-06-09 Thread Andy Kim
n view is comes from an NSArrayController. I've noticed that Ihe IconCollection example project does not fade and have carefully followed every detail of that project, but I'm still getting the fade sometimes. What triggers the fade when the app launches? Andy Kim Potion Factory LLC

symbol(s) not found

2008-06-08 Thread kim
table is not up to date? I did a clean all targets, no dice. Other objects don't error, but the Calculate object is instantiated first so the linker may not have made it to the rest of them. Anyone have any clues? Thanks bunches Kim ___ Co

Re: No parent window for sheets?

2008-03-09 Thread Paul Kim
nk it should do fine in the context I am using it in. Thanks, Paul Kim On Mar 8, 2008, at 7:20 PM, Jim Correia wrote: On Mar 8, 2008, at 4:56 PM, Paul Kim wrote: I always assumed that sheets had a child-parent relationship with the window they were attached to. In my little test, ca

No parent window for sheets?

2008-03-08 Thread Paul Kim
d sheet and compare it to the current window. In the end not a big deal. My main concern is that -isSheet seems to leaves the door open for some odd edge cases. Thanks, Paul Kim ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do n