mouseDragged and bindings

2012-09-29 Thread GW Rodriguez
Problem: a declared property in a NSView subclass doesn't update members bound to it (with bindings) when in a mouseDragged method. So I have a subclass of NSView that has an ivar that I declare as a property.   In IB I have a NSTextField that I set the binding to the same variable (and I do eve

Re: afterDelay not working?

2012-01-28 Thread GW Rodriguez
Just an update: Thanks for the help guys.  I found out I wasn't running on the current loop and didn't realize that time based methods and classes wont work.  My flash method was being called in the background. Thanks GW ___ Cocoa-dev mailing list (Co

Re: afterDelay not working?

2012-01-26 Thread GW Rodriguez
Correct, it's not on a different thread. That's why I'm so confused as to why it's not working. :-/ GW Rodriguez Audio Technician South Coast Repertory (c) 909-720-4202 www.gwrodriguez.com On Jan 26, 2012, at 9:12 PM, Jens Alfke wrote: > > On Jan 26, 2012, at 8

afterDelay not working?

2012-01-26 Thread GW Rodriguez
I have a simple NSView class that is an indicator light that I want to flash.   Here are the two methods to perform the flash: -(void) performFlash {     if (ledOn) return;          ledOn = YES;     [selfsetNeedsDisplay:YES];     [selfperformSelector:@selector(endFlash) withObject:nilafterDelay:0.

getResourceValue:forKey:error: Unrecognized Selector

2011-10-28 Thread GW Rodriguez
I am trying to limit files with certain UTI's from dropping into a table view.   Here's my code so far: // in the init method I set the registerForDraggedTypes with NSURLPboardType -(NSDragOperation) tableView: (NSTableView*)tv                  validateDrop: (id )info                   proposed

Xcode 3 to 4 - CoreData in IB

2011-10-09 Thread GW Rodriguez
Back in Xocde 3 you could drag an entity into IB.  With Xcode 4 you can no longer do this.  I have found a way to do the exact same thing in IB but miss the ease of use of dragging an entity into IB.   Does anyone know if the IB team will be bringing this back in future releases of xcode?   PS

NSTableView - Drag/Drop not working

2011-10-08 Thread GW Rodriguez
I have gone through many different threads on this, read the docs and went over a few example projects.  For some reason I cannot get reordering via drag and drop to work.  I have even created a new project with only a NSTableView with one column and pasted code from a working example and it sti