• <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>

            逛奔的蝸牛

            我不聰明,但我會(huì)很努力

               ::  :: 新隨筆 ::  ::  :: 管理 ::
            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 逛奔的蝸牛 閱讀(695) 評(píng)論(0)  編輯 收藏 引用 所屬分類(lèi): Cocoa
            国产精品丝袜久久久久久不卡| 国产精品成人无码久久久久久| 一本色道久久88综合日韩精品| 热RE99久久精品国产66热| 欧美亚洲另类久久综合婷婷| 亚洲精品综合久久| 久久亚洲精品无码AV红樱桃| 国产美女久久久| 一本久久综合亚洲鲁鲁五月天| 午夜精品久久久久久毛片| 国内精品久久久久久99蜜桃 | 久久99精品国产99久久| 久久国产精品无码网站| 久久亚洲日韩精品一区二区三区| 久久久久国产精品| 日韩乱码人妻无码中文字幕久久| 精品久久久久久无码人妻蜜桃| 亚洲va中文字幕无码久久不卡| 很黄很污的网站久久mimi色 | 99热热久久这里只有精品68| 亚洲中文字幕无码久久2020| 久久精品女人天堂AV麻| 久久综合九色综合欧美狠狠| 久久精品a亚洲国产v高清不卡| 日韩久久无码免费毛片软件| 国产福利电影一区二区三区,免费久久久久久久精| 伊人久久大香线蕉综合热线| 狠狠色综合久久久久尤物| 青青青青久久精品国产h| 国产精品禁18久久久夂久| 亚洲av成人无码久久精品| 久久人妻少妇嫩草AV蜜桃| 久久精品国产精品亚洲艾草网美妙 | 午夜精品久久久久久影视777| 国产亚洲精久久久久久无码AV| 欧美亚洲国产精品久久蜜芽| 久久综合综合久久97色| 久久精品国产秦先生| 韩国三级大全久久网站| 91久久精品国产91性色也| 久久se精品一区二区影院|