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
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
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:
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
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
> |
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
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
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.
>>
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
>
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
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
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
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
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
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
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
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
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"
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
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
20 matches
Mail list logo