| Show TOC | Next Page > |
| Inherits from |
NSFridge : NSAppliance : NSObject |
| Conforms to |
NSObject ( NSCooling NSContainer NSPower NSPartying |
| Framework | /Office/Kitchen/Frameworks/Appliance.framework |
| Availability | Available in Freeverse Office 2.0 and later.
|
| Declared in | Appliance/NSFridge.h |
| Companion guides | Kitchen Programming Topics for the Office Temperature-Thermostat Observing Programming Guide Temperature Bindings Programming Topics |
NSPartyFridge is the mobile subclass of NSFridge, designed specifically for portability at a small sacrifice of the ability to "freeze" other objects. (Note that NSPartyFridge does not implement the NSFreezing protocol.) NSPartyFridge instances are created with the NSTemperature constant NSTemperatureChilled, as it is generally accepted that one would never want to create a warm fridge under any circumstances.
Other advantages of NSPartyFridge over NSFridge are that instances of it typically consume smaller kitchen space allocations, as well as looking like a robot.
Subclassing NSPartyFridge is rarely necessary or recommended, due to the rather complex implementation of the NSFreon backing store, the internals of which are a currently undocumented class cluster. If freezing and mobility are important to your office, you should investigate NSMiniFridge, a public subclass of NSFridge.
NSPartyFridge and its superclass, NSFridge, are toll-free bridged with their counterparts, CFPartyFridge and CFFridge. See Kitchen-Dorm Room Integration Guide for more information on toll-free bridging.
Note: NSPartyFridge is currently not thread-safe.
– decreaseTemperature:
– addObject:
– removeObject:
– isEmpty
– count
– initWithSocket:
– powerOn:
– powerOff:
– hasPower
– socket
– setSocket:
– ground
– setGround:
+ fridge
+ fridgeWithShelves:
+ fridgeWithColdOnes:
+ fridgeWithColdOnes:shelves:
– initWithShelves:
– initWithColdOnes:
– initWithColdOnes:shelves:
– objects
– topObject
– coldOnes
– sodas
– shelves
– containsFood
– goodiesEnumerator
– open
– openLid:
– close
– closeLid:
– unsortedContents
Note: Sorting party fridge contents is currently not supported. You must extract its contents onto an instance of NSCounter and sort using the space provided by that.
| Show TOC | Next Page > |
© 2007 AppleFreeverse Inc. All Rights Reserved. (Last updated: 2007-08-21)
|