So i tried one of the suggestions, which was to add a new menu item
(as opposed to using the default one). When I did this, they BOTH
started to work.
I can't explain what happened. Of course, I would swear that I was
doing things right, but... It may have been pure user error, or IB
migh
I tried your suggestion of changing the action to "myDelete:", but it
still doesn't work. Something else responding to the action first
seems like a possible problem.
I added "myDelete:" to the First Responder in IB, then tied the
"Delete" menu item to it using click-drag. I changed the name
the "delete:" message on NSResponder, yet it shows up when I
connect to "First Responder" in IB.
Is there a way to generate code from IB, or peer into the Nib file?
Jim
On Dec 17, 2009, at 12:31 PM, Kyle Sluder wrote:
On Thu, Dec 17, 2009 at 9:57 AM, Jim Majure
wrote:
I
Dave,
I'm trying to learn Cocoa and to do so I've been writing a time entry
application. I've implemented a custom view that is quite similar to
what you're talking about. It displays entries similar to iCal and
allows you to click/drag to move or resize.
It currently only has a single da
dCell && [selectedCell selected]) {
return YES;
}
return NO;
}
return NO;
}
- (IBAction) cut: (id) sender {
NSLog(@"cut");
[timeEntryController deleteSelectedEntry];
}
On Dec 17, 2009, at 11:49 AM, Quincey Morris wrote:
On
Hello,
I'm having problems enabling the "Edit>Delete" menu item on a custom
view. Here's what I have tried:
- I have linked the Delete menu item to the "delete:" selector of the
First Responder in IB.
- I have implemented the "(IBAction) delete: (id) sender;" on my
custom view.
- I have
I have a question regarding bindings: when I bind the value of a
TableColumn to a controller, I specify the key path as something like
this: @"arrangedObjects.name". So each row of the table, displays the
"name" field from an object in the "arrangedObjects" property of the
controller. In th
I'm using the following code to create a new Core Data entity and
populate a to-one relationship. Everything seems to be working okay
except the "setValue:forKey:" to establish the to-one relationship.
I've included the error messages below. Any ideas what I might be
doing wrong?
Thanks,