• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            逛奔的蝸牛

            我不聰明,但我會很努力

               ::  :: 新隨筆 ::  ::  :: 管理 ::
            An NSValue object is a simple container for a single C or Objective-C data item. It can hold any of the scalar types such as int, float, and char, as well as pointers, structures, and object ids. The purpose of this class is to allow items of such data types to be added to collections such as instances of NSArray and NSSet, which require their elements to be objects. NSValue objects are always immutable.

            getValue:

            Copies the receiver’s value into a given buffer.

            - (void)getValue:(void *)buffer
            Parameters
            buffer

            A buffer into which to copy the receiver's value. buffer must be large enough to hold the value.

            isEqualToValue:

            Returns a Boolean value that indicates whether the receiver and another value are equal.

            - (BOOL)isEqualToValue:(NSValue *)value
            Parameters
            aValue

            The value with which to compare the receiver.

            Return Value

            YES if the receiver and aValue are equal, otherwise NO. For NSValue objects, the class, type, and contents are compared to determine equality.

            pointerValue

            Returns the receiver's value as a pointer to void.

            - (void *)pointerValue
            Return Value

            The receiver's value as a pointer to void. If the receiver was not created to hold a pointer-sized data item, the result is undefined.

            pointValue

            Returns an NSPoint structure representation of the receiver.

            - (NSPoint)pointValue
            Return Value

            An NSPoint structure representation of the receiver.

            rangeValue

            Returns an NSRange structure representation of the receiver.

            - (NSRange)rangeValue
            Return Value

            An NSRange structure representation of the receiver.

            rectValue

            Returns an NSRect structure representation of the receiver.

            - (NSRect)rectValue
            Return Value

            An NSRect structure representation of the receiver.

            sizeValue

            Returns an NSSize structure representation of the receiver.

            - (NSSize)sizeValue
            Return Value

            An NSSize structure representation of the receiver.

            valueWithPointer:

            Creates and returns an NSValue object that contains a given pointer.

            + (NSValue *)valueWithPointer:(const void *)aPointer
            Parameters
            aPointer

            The value for the new object.

            Return Value

            A new NSValue object that contains aPointer.

            Discussion

            This method is equivalent to invoking value:withObjCType: in this manner:

            NSValue *theValue = [NSValue value:&aPointer withObjCType:@encode(void *)];

            This method does not copy the contents of aPointer, so you must not to deallocate the memory at the pointer destination while the NSValue object exists. NSData objects may be more suited for arbitrary pointers than NSValue objects.

            @import url(http://www.shnenglu.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);
            posted on 2011-12-02 00:11 逛奔的蝸牛 閱讀(686) 評論(0)  編輯 收藏 引用 所屬分類: Cocoa
            丁香久久婷婷国产午夜视频| 亚洲精品乱码久久久久久 | 久久香蕉国产线看观看猫咪?v| 久久久精品视频免费观看| 综合久久给合久久狠狠狠97色| 精品久久久中文字幕人妻| 99国产精品久久久久久久成人热| 久久九九久精品国产| 久久天堂AV综合合色蜜桃网| 久久精品国产福利国产琪琪| 国产综合久久久久| 国产精品久久久久免费a∨| 91超碰碰碰碰久久久久久综合| 久久亚洲精品国产亚洲老地址| 狠狠久久亚洲欧美专区| 久久久久免费精品国产| 久久久久久噜噜精品免费直播| 99国产精品久久| 久久精品无码一区二区无码| 午夜精品久久久久久| 精品久久久久中文字| 97精品国产91久久久久久| 国产精品久久久久久久久软件| 成人国内精品久久久久影院VR| 久久人爽人人爽人人片AV| 久久国产欧美日韩精品| 亚州日韩精品专区久久久| 久久久艹| 中文字幕精品久久| 伊人精品久久久久7777| 四虎影视久久久免费| 色婷婷久久久SWAG精品| 久久久久无码精品国产app| 久久国产精品二国产精品| 国产高潮国产高潮久久久91| 国产精品美女久久久久AV福利 | 99热都是精品久久久久久| 国产精品久久波多野结衣| 久久综合九色综合精品| 久久精品国产福利国产琪琪| 久久久免费观成人影院|