Questions tagged [nsviewcontroller]

An Objective-C object that manages a view, typically loaded from a nib file.

The NSViewController object manages a view, typically loaded from a nib file.

This management includes:

  • Memory management of top-level objects similar to that of the NSWindowController class, taking the same care to prevent reference cycles when controls are bound to the nib file's owner that NSWindowController began taking in Mac OS v 10.4.
  • Declaring a generic representedObject property, to make it easy to establish bindings in the nib to an object that isn't yet known at nib-loading time or readily available to the code that's doing the nib loading.
  • Implementing the key-value binding NSEditor informal protocol, so that applications using NSViewController can easily make bound controls in the views commit or discard the changes the user is making.

For more information on the NSViewController object, check Apple's NSViewController Class Reference.

410 questions
-1
votes
1 answer

Calling SetNeedsDisplay from other class

Today I'm facing a new problem: I have a ViewController (Subclass of NSView) and another class (Subclass of NSObject) which, through an IBAction, try to call back the viewController to redraw its view using SetNeedsDisplay:YES. The method to redraw…
Alberto
  • 4,212
  • 5
  • 22
  • 36
-2
votes
1 answer

Managing NSViewcontroller for OS X Development cocoa programming

I have integrated sqlite database in app, button I am not able to change my NSViewController with login button while view changes if segue is connected but than code inside login action is not compiled and NSViewController is directly changed. so…
Rakshit Korat
  • 1,159
  • 10
  • 23
-2
votes
1 answer

xcode (osx) : clic on button in view of custom view controller failed

OSX 10.7.5 - XCode 4.6.1 - application OSX, not iOS. Code very simple. A Window > contentWiew > subView with ViewController > Button. The button is created using ViewController.xib. All displays as expected, but when I click on the button, all…
-2
votes
1 answer

Cocoa App. (MAC) is very slow

I am using a timer based application, where i am running 3 timers continuously in main run loop, so that the timer will continuously runs in case of any UI updates. But after some time (Approx 1 hour), my application hangs, not event the buttons etc…
york
  • 149
  • 1
  • 11
-5
votes
2 answers

Popup window in OS X App

I have a little problem with app and looking for the best solution. I want to create an popup window that have separate logic in other NSViewController. The case is - I click on the button in my window and then other window appears with some…
Double W
  • 1
  • 1
  • 2
1 2 3
27
28