Trygve Inda (cocoa...@xericdesign.com) on 2009-03-17 7:36 PM said:
>io_service_tservice;
>CFDictionaryRef dict;
>
>dict = (CFDictionaryRef) IODisplayCreateInfoDictionary (service,
>kNilOptions);
Why the cast?
>No matter what I do I get:
>
>warning: cast to pointer from integer of dif
2009/3/17 Trygve Inda :
> 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
IO
io_service_tservice;
CFDictionaryRef dict;
dict = (CFDictionaryRef) IODisplayCreateInfoDictionary (service,
kNilOptions);
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 IODisplayCrea