• <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 逛奔的蝸牛 閱讀(690) 評(píng)論(0)  編輯 收藏 引用 所屬分類(lèi): Cocoa
            色偷偷888欧美精品久久久| 国产精品内射久久久久欢欢| 亚洲国产婷婷香蕉久久久久久| 久久99精品久久久久久秒播| 一日本道伊人久久综合影| 久久狠狠爱亚洲综合影院| 国产精品久久久久久久久| 久久久久99精品成人片三人毛片| 一本久道久久综合狠狠躁AV| 久久精品人成免费| 日韩十八禁一区二区久久| 国产精品久久久久jk制服| 欧美精品一区二区久久| avtt天堂网久久精品| 日韩亚洲国产综合久久久| 久久国产精品99精品国产| 色综合久久天天综线观看| 精品久久无码中文字幕| 久久毛片免费看一区二区三区| 久久亚洲AV成人无码电影| 久久国内免费视频| 国产精品免费久久| 久久精品一区二区三区不卡| 青青草原综合久久大伊人| 韩国三级中文字幕hd久久精品| 91精品国产9l久久久久| 日韩久久久久久中文人妻| 久久久久国产精品嫩草影院| 久久精品视频91| 久久久综合香蕉尹人综合网| 四虎国产精品免费久久久| …久久精品99久久香蕉国产| 性欧美丰满熟妇XXXX性久久久| 日韩欧美亚洲综合久久| 国产精品久久久久久五月尺| 久久精品视屏| 精品久久久一二三区| 综合久久一区二区三区| 久久99这里只有精品国产| 亚洲综合伊人久久综合| 久久亚洲私人国产精品|