Re: Extended Save Dialog Crashing

2014-10-27 Thread Kyle Sluder
Sent from my iPad > On Oct 27, 2014, at 8:33 PM, Luther Baker wrote: > > I'm writing my first Document based app for OSX and have reached a spot > where I'd like to actually save and open a file. It is a Core Data backed > Document within which I create some arbitrary data and display it via t

Re: Mac containment segues, and prepareForSegue

2014-10-27 Thread Fritz Anderson
... of the _view_ controller. ― F > On Oct 27, 2014, at 10:40 PM, Fritz Anderson wrote: > > the contents of the vote controller ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: Mac containment segues, and prepareForSegue

2014-10-27 Thread Fritz Anderson
I'm glad of the correction. Yes, I am speaking exactly about the "relationship" link between the window in a window controller scene and the view in the view controller as provided in the template's Main.storyboard. I think it absurd that there is no obvious way for a document class that loads

Extended Save Dialog Crashing

2014-10-27 Thread Luther Baker
I'm writing my first Document based app for OSX and have reached a spot where I'd like to actually save and open a file. It is a Core Data backed Document within which I create some arbitrary data and display it via two NSOutlineViews. I also have the ability to edit the data inline and save it bac

Re: Editing an NSOutlineView item

2014-10-27 Thread Luther Baker
Thanks Ken. Just what I needed. -Luther On Mon, Oct 27, 2014 at 7:47 PM, Ken Thomases wrote: > On Oct 27, 2014, at 7:02 PM, Luther Baker wrote: > > > I've successfully built an NSOutlineView and configured the items for > > editing. Got that working. > > > > Now, in my delegate/datasource, I

Re: loading NSWindowController nib from bundle

2014-10-27 Thread Quincey Morris
On Oct 27, 2014, at 18:16 , Torsten Curdt wrote: > > I know - it smells horrible. It doesn’t just smell, it’s actually wrong. > My next thought was to just add > > - (id) initWithMyWindowNibPath:(NSString *)nibPath > { > return [super initWithWindowNibPath:nibPath owner:self];

Re: loading NSWindowController nib from bundle

2014-10-27 Thread Torsten Curdt
> > My first thought was that passing in "nil" as the owner would actually > default to "self" I really want - but that does not seem to be the case. > > > It’s documented as “cannot be nil”. > Yup - and it also barfs if it is :) Still it was my first thought and expectation. > On the next thoug

Re: Mac containment segues, and prepareForSegue

2014-10-27 Thread Roland King
> On 28 Oct 2014, at 7:30 am, Fritz Anderson wrote: > > This is Yosemite, in Swift under Xcode 6.1. > > The summary: I don’t understand NSStoryboard containment relationships. I’ve > never received a prepareForSegue(_, sender:), and without it, I can’t figure > out how to propagate data from

Re: Editing an NSOutlineView item

2014-10-27 Thread Ken Thomases
On Oct 27, 2014, at 7:02 PM, Luther Baker wrote: > I've successfully built an NSOutlineView and configured the items for > editing. Got that working. > > Now, in my delegate/datasource, I am implementing > > - (BOOL)outlineView:(NSOutlineView *)outlineView > shouldEditTableColumn:(NSTableColumn

NSMenuDelegate - menuNeedsUpdate:(NSMenu *): can I get key(s) pressed?

2014-10-27 Thread Jim Prouty
QUESTION: Is there code I can write to get the key(s) pressed during NSMenuDelegate's menuNeedsUpdate:nsmenu method? Not modifiers, which can be directly queried, but key(s). Specifically, I want to test whether any of the Function keys F1, F2, etc are down, *during* menuNeedsUpdate, though it

Editing an NSOutlineView item

2014-10-27 Thread Luther Baker
I've successfully built an NSOutlineView and configured the items for editing. Got that working. Now, in my delegate/datasource, I am implementing - (BOOL)outlineView:(NSOutlineView *)outlineView shouldEditTableColumn:(NSTableColumn *)tableColumn item:(id)item { NSLog(@"hi"); }

Re: loading NSWindowController nib from bundle

2014-10-27 Thread Quincey Morris
On Oct 27, 2014, at 15:10 , Torsten Curdt wrote: > > My first thought was that passing in "nil" as the owner would actually > default to "self" I really want - but that does not seem to be the case. It’s documented as “cannot be nil”. > On the next thought > >controller = [self alloc]; >

Mac containment segues, and prepareForSegue

2014-10-27 Thread Fritz Anderson
This is Yosemite, in Swift under Xcode 6.1. The summary: I don’t understand NSStoryboard containment relationships. I’ve never received a prepareForSegue(_, sender:), and without it, I can’t figure out how to propagate data from a document into its views. This is completely elementary. I can’t

loading NSWindowController nib from bundle

2014-10-27 Thread Torsten Curdt
I am a little confused on how to load NSWindowController from a bundle other than the mainbundle. While this code works just fine controller = [[self alloc] initWithWindowNibName:@"TCAboutWindow"]; I now moved the the nib into it's own bundle inside the main bundle. Since I could not figure

Re: NSSavePanel load error

2014-10-27 Thread edward taffel
thanks for your speedy reply lee ann! pleased someone else thinks it a bug. cheers, edward ps: that should have read: ‘i have not sub-calssed NSSavePanel’. > On Oct 27, 2014, at 3:49 PM, Lee Ann Rucker wrote: > > Apple bug - according to classdump, that class has had a “layout” method > sin

Re: Crash with ARC enabled on Xcode 6.1

2014-10-27 Thread Beinan Li
Hi All, Sorry, I have to turn this around. The problem turned out not to be the static objects at all, though I can't explain why for a short while, the crash was gone after removing them. The actual cause is the dictionary definition itself: I used a constant that is only available for iOS7.0+,

Re: NSSavePanel load error

2014-10-27 Thread Lee Ann Rucker
Apple bug - according to classdump, that class has had a “layout” method since before autolayout even existed, and I know from experience it doesn’t grok autolayout. You can ignore it. On Oct 27, 2014, at 11:56 AM, edward taffel wrote: > just updated my dev machine to yosemite. closing a docu

Using multiple cell XIBs for one UITableView - getting cell height.

2014-10-27 Thread Alex Zavatone
I finally got a chance to try out using more than one custom cell XIB in a UITableView and with different cell reuse identifiers, using more than one cell XIB is pretty straightforward. One issue that appeared though is that the cell heights are those of the cell that gets dequeued. If each ce

NSSavePanel load error

2014-10-27 Thread edward taffel
just updated my dev machine to yosemite. closing a document window (command-W) from within my app, causes the following log: [NSSavePanelAlertStyleContentView layout]. NSSavePanelAlertStyleContentView or one of its superclasses may have overridden -layout without calling super. Or, something m

Re: Any way to avoid external parameter names?

2014-10-27 Thread Rick Mann
I did: 18771081 > On Oct 27, 2014, at 11:37 , Greg Parker wrote: > > >> On Oct 24, 2014, at 8:31 PM, Rick Mann wrote: >> >> Anyway, once I realized what was going on, I was able to get the behavior I >> wanted. It's not perfect, because now I have to declare my function types >> like this t

Re: Any way to avoid external parameter names?

2014-10-27 Thread Greg Parker
> On Oct 24, 2014, at 8:31 PM, Rick Mann wrote: > > Anyway, once I realized what was going on, I was able to get the behavior I > wanted. It's not perfect, because now I have to declare my function types > like this to get some documentation in them. I want to document at the > function decla

Re: Question about accelerometer and OpenGL (ES)

2014-10-27 Thread David Duncan
> On Oct 27, 2014, at 10:03 AM, William Squires wrote: > > I'm trying to write a simple demo app and need to know two things: > > 1) How can I translate the output from the accelerometer into an angular > deflection from the x- or y-axis (if you think of the device as an airplane, > with the

Question about accelerometer and OpenGL (ES)

2014-10-27 Thread William Squires
I'm trying to write a simple demo app and need to know two things: 1) How can I translate the output from the accelerometer into an angular deflection from the x- or y-axis (if you think of the device as an airplane, with the cockpit near the FaceTime camera, and the tail near the home button,