• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: cast to pointer from int of diff size & IODisplayCreateInfoDictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cast to pointer from int of diff size & IODisplayCreateInfoDictionary


  • Subject: Re: cast to pointer from int of diff size & IODisplayCreateInfoDictionary
  • From: Clark Cox <email@hidden>
  • Date: Tue, 17 Mar 2009 20:09:01 -0700

2009/3/17 Trygve Inda <email@hidden>:
> io_service_t        service;
> CFDictionaryRef     dict;
>
> dict = (CFDictionaryRef) IODisplayCreateInfoDictionary (service,
> kNilOptions);

The fact that you have to cast the result at all is a pretty big
indicator. I'd bet you've forgotten to include whatever header
IODisplayCreateInfoDictionary is defined in. (You're probably also
seeing warnings about the implicit declaration of
IODisplayCreateInfoDictionary).

> No matter what I do I get:
>
> warning: cast to pointer from integer of different size
>
> I am compiling 32/64bit and this is defined as:
>
> CFDictionaryRef IODisplayCreateInfoDictionary(
>    io_service_t framebuffer,
>    IOOptionBits options );
>
> Thaoughts?
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>



--
Clark S. Cox III
email@hidden
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >cast to pointer from int of diff size & IODisplayCreateInfoDictionary (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: Automatically replacing part of text in a text label
  • Next by Date: Re: Drawing background windows during window move.
  • Previous by thread: cast to pointer from int of diff size & IODisplayCreateInfoDictionary
  • Next by thread: Re: cast to pointer from int of diff size & IODisplayCreateInfoDictionary
  • Index(es):
    • Date
    • Thread