<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://code-reference.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://code-reference.com/feed.php">
        <title>Programming | Library | Reference - Code-Reference.com objective-c:foundation.framework:nsvalue.h</title>
        <description></description>
        <link>https://code-reference.com/</link>
        <image rdf:resource="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-05-18T18:30:42+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsvalue.h/valuewithcgpoint?rev=1708042343&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsvalue.h/valuewithcgrect?rev=1708042343&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsvalue.h/valuewithcgsize?rev=1708042343&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Programming | Library | Reference - Code-Reference.com</title>
        <link>https://code-reference.com/</link>
        <url>https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsvalue.h/valuewithcgpoint?rev=1708042343&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:23+02:00</dc:date>
        <title>valueWithCGPoint</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsvalue.h/valuewithcgpoint?rev=1708042343&amp;do=diff</link>
        <description>valueWithCGPoint

    

+ (NSValue *)valueWithCGPoint:(CGPoint)point;
 


Creates and returns an NSValue object that contains the value of a CGPoint.

Return Value
- A new NSValue object.

ObjC Sourcecode Example



    // ** Sample datatype **
    CGPoint aPoint = CGPointMake(150.0f, 200.0f);
    
    // ** Create nsvalue object **
    NSValue *cgPointValue = [NSValue valueWithCGPoint:aPoint];
    
    // ** Output **
    NSLog(@&quot;%@&quot;, cgPointValue);</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsvalue.h/valuewithcgrect?rev=1708042343&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:23+02:00</dc:date>
        <title>valueWithCGRect</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsvalue.h/valuewithcgrect?rev=1708042343&amp;do=diff</link>
        <description>valueWithCGRect

    

+ (NSValue *)valueWithCGRect:(CGRect)rect;
 


Creates and returns an NSValue object that contains the value of a CGRect.

Return Value
- A new NSValue object.

ObjC Sourcecode Example



    //** Sample datatype **
    CGRect aRect = CGRectMake(0.0f, 0.0f, 150.0f, 200.0f);
    
    // ** Create nsvalue object **
    NSValue *cgRectValue = [NSValue valueWithCGRect:aRect];
    
    // ** Output **
    NSLog(@&quot;%@&quot;, cgRectValue);</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsvalue.h/valuewithcgsize?rev=1708042343&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:23+02:00</dc:date>
        <title>valueWithCGSize</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsvalue.h/valuewithcgsize?rev=1708042343&amp;do=diff</link>
        <description>valueWithCGSize

    

+ (NSValue *)valueWithCGSize:(CGSize)size;
 


Creates and returns an NSValue object that contains the value of a CGSize.

Return Value
- A new NSValue object.

ObjC Sourcecode Example



    // ** Sample datatype **
    CGSize aSize = CGSizeMake(150.0f, 200.0f);
    
    // ** Add the value to nsvalue object **
    NSValue *cgSizeValue = [NSValue valueWithCGSize:aSize];
    
    // ** Output **
    NSLog(@&quot;%@&quot;, cgSizeValue);</description>
    </item>
</rdf:RDF>
