• <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://m.shnenglu.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);
            posted on 2011-12-02 00:11 逛奔的蝸牛 閱讀(695) 評論(0)  編輯 收藏 引用 所屬分類: Cocoa
            99久久国产热无码精品免费| 国内精品久久久久影院亚洲| 精品久久久久久无码专区| 久久人妻少妇嫩草AV无码专区| 性欧美大战久久久久久久久 | 亚洲精品乱码久久久久久| 伊人久久大香线焦AV综合影院| 亚洲精品国产字幕久久不卡| 青草影院天堂男人久久| 伊人久久大香线蕉综合Av| 久久久久四虎国产精品| 中文精品久久久久人妻不卡| 精品久久久久久久中文字幕| 亚洲AV无码久久精品成人| 久久精品亚洲精品国产欧美| 欧洲性大片xxxxx久久久| 亚洲国产精品久久久久网站 | 亚洲午夜无码AV毛片久久| 久久国产精品99国产精| 人妻精品久久久久中文字幕| 99久久无码一区人妻a黑| 久久成人国产精品免费软件| 久久久久久久综合日本| 99久久无色码中文字幕| 亚洲精品午夜国产va久久| 久久99国产一区二区三区| 国产福利电影一区二区三区久久久久成人精品综合 | 久久亚洲精品无码AV红樱桃| 亚洲国产成人久久一区久久| 国内精品久久久久久麻豆| 欧美综合天天夜夜久久| 人人狠狠综合久久亚洲婷婷| 成人免费网站久久久| 国产精品免费福利久久| 国内精品久久人妻互换| 国产精品女同久久久久电影院| 亚洲国产另类久久久精品小说| 伊人久久大香线蕉亚洲| 久久婷婷五月综合国产尤物app | 一本久久a久久精品综合夜夜| 久久精品国产99国产电影网 |