Re: Extract Text From NSLabels to Mail

2010-09-19 Thread PJBorges
I got it to work Ken. Your last input helped a lot. Thanks for explaining it to me. Made it more clear. I don't know why I got the previous error. But it's gone now. It occurred whenever I pressed the button that opens Mail. Obviously, the error relates to my old faulty code. For anyone who stumb

NSImage

2010-09-19 Thread koko
I have never done what I am asking about and don't want to go down the wrong path and waste time. I want to display images in a view (call it the tool box), drag the images around and place them where the mouse goes up. The images are also to be dragged from the tool box to another view

Re: NSImage

2010-09-19 Thread Erik Buck
On Sep 19, 2010, at 12:36 PM, k...@highrolls.net wrote: > > Am I on the right track or is there something even easier? > IMHO, No. Please explain why you would subclass NSImage to accomplish any of your goals. I suspect that the effort of making that explanation will be insightful. Hint:

NSSplitView with multiple dividers

2010-09-19 Thread Geoffrey Holden
I am trying to set up a window with three resizable panes. Currently, I have done this by dragging an NSSplitView into my window (in IB) and then dragging another NSSplitView into that: +NSSplitView |--+NSView | '-NSTableView | |--+NSView | '-NSSplitView | Having done this, I am trying to

Re: NSSplitView with multiple dividers

2010-09-19 Thread jonat...@mugginsoft.com
On 19 Sep 2010, at 18:14, Geoffrey Holden wrote: > I am trying to set up a window with three resizable panes. Currently, I have > done this by dragging an NSSplitView into my window (in IB) and then dragging > another NSSplitView into that: > > +NSSplitView > |--+NSView > | '-NSTableView > |

Re: NSSplitView with multiple dividers

2010-09-19 Thread Kyle Sluder
On Sep 19, 2010, at 11:55 AM, "jonat...@mugginsoft.com" wrote: > > On 19 Sep 2010, at 18:14, Geoffrey Holden wrote: > >> I am trying to set up a window with three resizable panes. Currently, I >> have done this by dragging an NSSplitView into my window (in IB) and then >> dragging another N

What's the point of @properties?

2010-09-19 Thread Jim Thomason
I'm refactoring and updating a lot of my older code, and one of the things I'm finally looking into is declaring things as properties. But...what's the point? I've been trying to read up on the subject and have found a lot of posts and discussion about the subject, but very little of it seems to g

Re: Linked List

2010-09-19 Thread Daniel DeCovnick
On Sep 18, 2010, at 4:53 PM, Sherm Pendley wrote: > On Sat, Sep 18, 2010 at 7:36 PM, Fritz Anderson > wrote: >> On 18 Sep 2010, at 6:09 PM, k...@highrolls.net wrote: >> >>> What is the Cocoa equivalent of a doubly linked list? Should I consider >>> NSMutablearray as the analog? >> >> Yes. >>

Re: What's the point of @properties?

2010-09-19 Thread Markus Spoettl
On Sep 19, 2010, at 3:52 PM, Jim Thomason wrote: > I'm refactoring and updating a lot of my older code, and one of the > things I'm finally looking into is declaring things as properties. > > But...what's the point? > [...] > Is there something else I'm not seeing or some other utility to them >

Re: What's the point of @properties?

2010-09-19 Thread Bill Bumgarner
On Sep 19, 2010, at 1:11 PM, Markus Spoettl wrote: > One thing you get is automatic KVO change notifications. When you set a > property through its setter, you don't have to use -willChangeValueForKey: > and -didChangeValueForKey: in order to trigger -observeValueForKeyPath: > messages for tho

Re: What's the point of @properties?

2010-09-19 Thread Ken Thomases
On Sep 19, 2010, at 2:52 PM, Jim Thomason wrote: > I know I'd get use of the dot syntax (I do need to use @properties to > do that, right?) No. Dot syntax is syntactic sugar for invoking accessors. The accessor do not have to be related to a declared property (i.e. @property). Dot syntax work

DemoMonkey services MIA

2010-09-19 Thread Matt Neuburg
I downloaded and built the DemoMonkey example and created a document... https://developer.apple.com/library/mac/#samplecode/DemoMonkey/Introduction/ Intro.html ... but the application's services are not appearing in my Services menu (and yes, they are listed and checked in System Preferences, so

Drag and Drop in Same View

2010-09-19 Thread koko
I do dragImage:at:offset:event:pasteboard:source:slideBack: in a view's mouseDragged method. The view also implements all the correct methods for dragging as outlined in the example Erik Buck referred to. These dragging methods are never called. So what must be done to Drop in the view

Re: DemoMonkey services MIA

2010-09-19 Thread Matt Neuburg
On or about 9/19/10 3:26 PM, thus spake "Matt Neuburg" : > I downloaded and built the DemoMonkey example and created a document... > > https://developer.apple.com/library/mac/#samplecode/DemoMonkey/Introduction/In > tro.html > > ... but the application's services are not appearing in my Services

Re: Drag and Drop in Same View

2010-09-19 Thread Raleigh Ledet
You need to register as a dragging destination for your dragging type: -registerForDraggedTypes: http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/Reference/NSView.html%23//apple_ref/occ/instm/NSView/registerForDraggedTypes: -raleigh On Sep

Re: Drag and Drop in Same View

2010-09-19 Thread koko
Sorry ... I did not say I had done that as follows: [self registerForDraggedTypes:[NSArray arrayWithObjects:NSDragPboard, nil]]; On Sep 19, 2010, at 7:19 PM, Raleigh Ledet wrote: You need to register as a dragging destination for your dragging type: -registerForDraggedTypes: http://de

Re: Drag and Drop in Same View

2010-09-19 Thread Raleigh Ledet
NSDragPboard is the name of a pasteboard, not the dragged type. The drag type is the type of data you put on the pasteboard to drag. For example, is you are dragging a URL, then register for kUTTypeURL. If it's private data then it's along these lines: NSString *myType = UTTypeCreatePreferred

Re: Drag and Drop in Same View

2010-09-19 Thread koko
Word Up to Raleigh! Just added one of my type and voila! Thanks. -koko [self registerForDraggedTypes:[NSArray arrayWithObjects:NSDragPboard, @"Jump", nil]]; in -mouseDragged: [pboard declareTypes:[NSArray arrayWithObject:@"Jump"] owner:self]; [pboard setData:[NSData data] forType:@"Jump"

How to double tap event on a UIButton

2010-09-19 Thread Jonathan Chacón
Hello, I have some UIButtons in a UIView. They have an action for the UIControlEventTouchUpInside (tap gesture). I use this code: [tmpUIButton addTarget:self action:@selector(cellClick:) forControlEvents:UIControlEventTouchUpInside]; Now I want add a new action for my buttons when the user do

Re: Drag and Drop in Same View

2010-09-19 Thread Raleigh Ledet
Koko, Seriously, NSDragPboard is not a type. You should remove it from your array. It shouldn't hurt anything, but it will confuse you when you look at the code later. [self registerForDraggedTypes:[NSArray arrayWithObject:@"Jump"]]; Cheers, raleigh On Sep 19, 2010, at 9:26 PM, k...@highrolls