Search found 6 matches

by kermit
Sat Sep 01, 2012 4:49 pm
Forum: Off Topic
Topic: Oracle patches critical bug!
Replies: 6
Views: 1457

Re: Oracle patches critical bug!

Shield wrote:Yeah pretty nasty stuff. I heard Oracle knew about this security hole for like three months
but didn't do anything until it got that much attention by the media.
Wait till you hear how many months it takes for Apple to patch Java on OSX after Oracle releases security patches :lol: :lol:
by kermit
Fri Aug 31, 2012 9:39 pm
Forum: Mac OSX
Topic: ImportC help
Replies: 4
Views: 2052

Re: ImportC help

Finally!!!!

Issue resolved:

Working code:

#kCFAllocatorDefault = 0
#kCFStringEncodingMacRoman = 0

ImportC "/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation"

CFStringCreateWithCString(alloc.l, CString, enc.l)

CFUserNotificationDisplayNotice(Timeout.d, AlertLevel.i ...
by kermit
Fri Aug 31, 2012 9:04 pm
Forum: Mac OSX
Topic: ImportC help
Replies: 4
Views: 2052

Re: ImportC help

Update: I think I 'm starting to understand CFStringRef and CFURLRef are pointers and by using .d it seems to not break with error.

Nevertheless, I 'm not sure do I pass a pointed for my string to the function? :o

Here 's my latest attempt:


OpenWindow(0, 0, 0, 220, 160, "A screen in a window ...
by kermit
Fri Aug 31, 2012 8:02 pm
Forum: Mac OSX
Topic: ImportC help
Replies: 4
Views: 2052

Re: ImportC help

Thank you very much for your reply wilbert! :!:

If I understand well, the double issue can be solved by replacing .i with .d . But what about the CFURLRef and CFStringRef? :shock:

Ref: https://developer.apple.com/library/ios/#documentation/CoreFoundation/Reference/CFStringRef/Reference/reference ...
by kermit
Fri Aug 31, 2012 7:27 pm
Forum: Mac OSX
Topic: ImportC help
Replies: 4
Views: 2052

ImportC help

Hi,

I am trying to understand how imports work, so I 'm trying to make a sample app. Here 's my code


OpenWindow(0, 0, 0, 220, 160, "A screen in a window...", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)

ImportC "/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation ...
by kermit
Fri Aug 31, 2012 6:03 pm
Forum: Coding Questions
Topic: Keyboard behavior
Replies: 1
Views: 832

Keyboard behavior

Hi all,

I 'm a basic guy who got himself on OSX Lion :) After taking a (short and painful) look at Obj-C, I 'm evaluating the BASIC options for the platform.

I got the demo version today and I 'm confused as to how to grab keyboard input without focus. With the hep of the manual and the forum, I ...