org.rococoa.cocoa.appkit
Class NSViewController

java.lang.Object
  extended by org.rococoa.cocoa.foundation.NSObject
      extended by org.rococoa.cocoa.appkit.NSResponder
          extended by org.rococoa.cocoa.appkit.NSViewController
All Implemented Interfaces:
NSCoding, NSObject, ObjCObject
Direct Known Subclasses:
NSCollectionViewItem

public abstract class NSViewController
extends NSResponder
implements NSCoding

This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.


Nested Class Summary
static class NSViewController._class_
           
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSCoding
NSCoding._static_
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
NSObject._static_
 
Constructor Summary
NSViewController()
           
 
Method Summary
static NSViewController alloc()
           
abstract  boolean commitEditing()
          Original signature : -(BOOL)commitEditing
native declaration : NSViewController.h:68
abstract  void commitEditingWithDelegate_didCommitSelector_contextInfo(ObjCObject delegate, Selector didCommitSelector, Pointer contextInfo)
          Conformance to KVB's NSEditor informal protocol.
static NSViewController createWithNibName_bundle(NSString nibNameOrNil, NSBundle nibBundleOrNil)
          Factory method
abstract  void discardEditing()
          Original signature : -(void)discardEditing
native declaration : NSViewController.h:69
static NSViewController._class_ getNSClass()
           
abstract  NSViewController initWithNibName_bundle(NSString nibNameOrNil, NSBundle nibBundleOrNil)
          The designated initializer.
abstract  void loadView()
          Instantiate the view and then set it.
static NSViewController new_()
           
abstract  NSBundle nibBundle()
          Original signature : -(NSBundle*)nibBundle
native declaration : NSViewController.h:59
abstract  NSString nibName()
          Return the name of the nib to be loaded to instantiate the view, and the bundle from which to load it.
abstract  NSObject representedObject()
          Original signature : -(id)representedObject
native declaration : NSViewController.h:41
abstract  void setRepresentedObject(ObjCObject representedObject)
          The object whose value is being presented in the view.
abstract  void setTitle(NSString title)
          The localized title of the view.
abstract  void setView(NSView view)
          Set the view.
abstract  NSString title()
          Original signature : -(NSString*)title
native declaration : NSViewController.h:46
abstract  NSView view()
          Return the view.
 
Methods inherited from class org.rococoa.cocoa.appkit.NSResponder
acceptsFirstResponder, as_NSResponder_NSErrorPresentation, as_NSResponder_NSInterfaceStyle, as_NSResponder_NSKeyboardUI, as_NSResponder_NSStandardKeyBindingMethods, as_NSResponder_NSUndoSupport, becomeFirstResponder, beginGestureWithEvent, cursorUpdate, endGestureWithEvent, flagsChanged, flushBufferedKeyEvents, helpRequested, interpretKeyEvents, keyDown, keyUp, magnifyWithEvent, menu, mouseDown, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseUp, nextResponder, noResponderFor, otherMouseDown, otherMouseDragged, otherMouseUp, performKeyEquivalent, resignFirstResponder, rightMouseDown, rightMouseDragged, rightMouseUp, rotateWithEvent, scrollWheel, setMenu, setNextResponder, shouldBeTreatedAsInkEvent, showContextHelp, swipeWithEvent, tabletPoint, tabletProximity, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesMovedWithEvent, tryToPerform_with, validRequestorForSendType_returnType
 
Methods inherited from class org.rococoa.cocoa.foundation.NSObject
as_NSObject_NSAccessibility, as_NSObject_NSAccessibilityAdditions, as_NSObject_NSApplicationScriptingDelegation, as_NSObject_NSArchiverCallback, as_NSObject_NSClassDescriptionPrimitives, as_NSObject_NSCoderMethods, as_NSObject_NSColorPanelResponderMethod, as_NSObject_NSComparisonMethods, as_NSObject_NSControlSubclassNotifications, as_NSObject_NSCopyLinkMoveHandler, as_NSObject_NSDelayedPerforming, as_NSObject_NSDeprecatedKeyValueCoding, as_NSObject_NSDeprecatedKeyValueObservingCustomization, as_NSObject_NSDeprecatedMethods, as_NSObject_NSDictionaryControllerKeyValuePair, as_NSObject_NSDistributedObjects, as_NSObject_NSDraggingDestination, as_NSObject_NSDraggingSource, as_NSObject_NSDraggingSourceDeprecated, as_NSObject_NSEditor, as_NSObject_NSEditorRegistration, as_NSObject_NSErrorRecoveryAttempting, as_NSObject_NSFileManagerFileOperationAdditions, as_NSObject_NSFontManagerDelegate, as_NSObject_NSFontManagerResponderMethod, as_NSObject_NSFontPanelValidationAdditions, as_NSObject_NSKeyValueBindingCreation, as_NSObject_NSKeyValueCoding, as_NSObject_NSKeyValueObserverNotification, as_NSObject_NSKeyValueObserverRegistration, as_NSObject_NSKeyValueObserving, as_NSObject_NSKeyValueObservingCustomization, as_NSObject_NSMenuValidation, as_NSObject_NSNibAwaking, as_NSObject_NSPasteboardOwner, as_NSObject_NSPlaceholders, as_NSObject_NSScriptClassDescription, as_NSObject_NSScripting, as_NSObject_NSScriptingComparisonMethods, as_NSObject_NSScriptKeyValueCoding, as_NSObject_NSScriptObjectSpecifiers, as_NSObject_NSThreadPerformAdditions, as_NSObject_NSURLClient, as_NSObject_NSURLConnectionDelegate, as_NSObject_NSURLDownloadDelegate, copy, create, dealloc, description, doesNotRecognizeSelector, finalize, forwardingTargetForSelector, forwardInvocation, init, isKindOfClass, isKindOfClass, methodForSelector, methodSignatureForSelector, mutableCopy, release, retain, retainCount
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSCoding
encodeWithCoder, initWithCoder
 
Methods inherited from interface org.rococoa.ObjCObject
id
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
autorelease, class_, conformsToProtocol, hash, isEqual, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, respondsToSelector, self, superclass, zone
 

Constructor Detail

NSViewController

public NSViewController()
Method Detail

initWithNibName_bundle

public abstract NSViewController initWithNibName_bundle(NSString nibNameOrNil,
                                                        NSBundle nibBundleOrNil)
The designated initializer. The specified nib should typically have the class of the file's owner set to NSViewController, or a subclass of yours, with the "view" outlet connected to a view. If you pass in a nil nib name then -nibName will return nil and -loadView will throw an exception; you most likely must also invoke -setView: before -view is invoked, or override -loadView. If you pass in a nil bundle then -nibBundle will return nil and -loadView will interpret it using the same rules as -[NSNib initWithNibNamed:bundle:].
Original signature : -(id)initWithNibName:(NSString*) bundle:(NSBundle*)
native declaration : NSViewController.h:36


createWithNibName_bundle

public static NSViewController createWithNibName_bundle(NSString nibNameOrNil,
                                                        NSBundle nibBundleOrNil)
Factory method

See Also:
initWithNibName_bundle(org.rococoa.cocoa.foundation.NSString, org.rococoa.cocoa.foundation.NSBundle)

setRepresentedObject

public abstract void setRepresentedObject(ObjCObject representedObject)
The object whose value is being presented in the view. The default implementation of -setRepresentedObject: doesn't copy the passed-in object, it retains it. (In another words, "representedObject" is a to-one relationship, not an attribute.) This class is key-value coding and key-value observing compliant for "representedObject" so when you use it as the file's owner of a view's nib you can bind controls to the file's owner using key paths that start with "representedObject."
Original signature : -(void)setRepresentedObject:(id)
native declaration : NSViewController.h:40


representedObject

public abstract NSObject representedObject()
Original signature : -(id)representedObject
native declaration : NSViewController.h:41


setTitle

public abstract void setTitle(NSString title)
The localized title of the view. This class doesn't actually do anything with the value of this property other than hold onto it, and be KVC and KVO compliant for "title." The default implementation of -setTitle: copies the passed-in object ("title" is an attribute). This property is here because so many anticipated uses of this class will involve letting the user choose among multiple named views using a pulldown menu or something like that.
Original signature : -(void)setTitle:(NSString*)
native declaration : NSViewController.h:45


title

public abstract NSString title()
Original signature : -(NSString*)title
native declaration : NSViewController.h:46


view

public abstract NSView view()
Return the view. The default implementation of this method first invokes [self loadView] if the view hasn't been set yet.
Original signature : -(NSView*)view
native declaration : NSViewController.h:50


loadView

public abstract void loadView()
Instantiate the view and then set it. The default implementation of this method invokes [self nibName] and [self nibBundle] and then uses the NSNib class to load the nib with this object as the file's owner. If the "view" outlet of the file's owner in the nib is properly connected, the regular nib loading machinery will send this object a -setView: message. You can override this method to customize how nib loading is done, including merely adding new behavior immediately before or immediately after nib loading done by the default implementation. You should not invoke this method from other objects unless you take care to avoid redundant invocations; NSViewController's default implement can handle them but overrides in subclasses might not. (Typically other objects should instead invoke -view and let the view controller do whatever it takes to fulfill the request.)
Original signature : -(void)loadView
native declaration : NSViewController.h:54


nibName

public abstract NSString nibName()
Return the name of the nib to be loaded to instantiate the view, and the bundle from which to load it. The default implementations of these merely return whatever value was passed to the initializer.
Original signature : -(NSString*)nibName
native declaration : NSViewController.h:58


nibBundle

public abstract NSBundle nibBundle()
Original signature : -(NSBundle*)nibBundle
native declaration : NSViewController.h:59


setView

public abstract void setView(NSView view)
Set the view. You can invoke this method immediately after creating the object to specify a view that's created in a different manner than what -view's default implementation would do.
Original signature : -(void)setView:(NSView*)
native declaration : NSViewController.h:63


commitEditingWithDelegate_didCommitSelector_contextInfo

public abstract void commitEditingWithDelegate_didCommitSelector_contextInfo(ObjCObject delegate,
                                                                             Selector didCommitSelector,
                                                                             Pointer contextInfo)
Conformance to KVB's NSEditor informal protocol. The default implementations of these methods pass on the message to each registered editor, which are typically controls in the nib that are bound to the nib file's owner. You can override these methods to customize what is done when your view's presentation to the user is about to end because, for example, the user has selected another of a set of views or hit a panel's OK button (committing time) or because the user has hit a panel's Cancel button (discarding time). This class also conforms to KVB's NSEditorRegistration informal protocol, but you're not encouraged to override those methods.
Original signature : -(void)commitEditingWithDelegate:(id) didCommitSelector:(SEL) contextInfo:(void*)
native declaration : NSViewController.h:67


commitEditing

public abstract boolean commitEditing()
Original signature : -(BOOL)commitEditing
native declaration : NSViewController.h:68


discardEditing

public abstract void discardEditing()
Original signature : -(void)discardEditing
native declaration : NSViewController.h:69


alloc

public static NSViewController alloc()

new_

public static NSViewController new_()

getNSClass

public static NSViewController._class_ getNSClass()


Copyright © 2009. All Rights Reserved.