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

2009-03-17 Thread Sean McBride
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

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

2009-03-17 Thread Clark Cox
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