How to open a new window on button click in Cocoa Mac Application?

If you want to create a separate class for New Window, these are the steps: Create a class which is a sub class of NSWindowController e.g. NewWindowController Create a window xib for NewWindowController class. On button click code as: NewWindowController *windowController = [[NewWindowController alloc] initWithWindowNibName:@”You Window XIB Name”]; [windowController showWindow:self];

Easiest way to support multiple orientations? How do I load a custom NIB when the application is in Landscape?

I found a much better way that works independent of the nav controller. Right now, I have this working when embedded in a nav controller, and when NOT embedded (although I’m not using the nav controller right now, so there may be some bug I’ve not seen – e.g. the PUSH transition animation might go … Read more

UIViewControllerHierarchyInconsistency when trying to present a modal view controller

This happened to me already twice in the newest Xcode release. In both cases I needed to make changes to the UIViewController’s XIB file (In you case it would be MapViewController.xib: BEFORE: Move main View out of View Controller’s children: Remove View Controller from the XIB (it is not necessary since File’s Owner should be … Read more

How to disable Interface Builder document versioning from auto updating?

Version 4.6.3 of Xcode resolves this issue. However, as the comments state, you all need to be running that same version. If four developers are on 4.6.3, and one is on a previous version, then that developer will experience the same issue. However, if they do not commit that change then it will not affect … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)