3.maybe yes, pb has it's own http lib, see the manual
4.check this : http://jordan.broughs.net/archives/2008 ... taller-cds
Search found 15 matches
- Wed Feb 01, 2012 4:47 am
- Forum: Mac OSX
- Topic: Crossplatform Windows/Mac (deployment)
- Replies: 4
- Views: 2254
- Tue Jan 31, 2012 6:55 am
- Forum: Mac OSX
- Topic: ExamineDesktops() does not work in lion?
- Replies: 2
- Views: 1469
Re: ExamineDesktops() does not work in lion?
This works just fine in Lion:
ExamineDesktops()
Debug Str(DesktopHeight(0))
Debug Str(DesktopWidth(0))
thanks, i mean how to get the number of desktops(spaces) for current user?
the manual says ExamineDesktops() will return the number of desktops.
but it seems that bp's ExamineDesktops() does ...
ExamineDesktops()
Debug Str(DesktopHeight(0))
Debug Str(DesktopWidth(0))
thanks, i mean how to get the number of desktops(spaces) for current user?
the manual says ExamineDesktops() will return the number of desktops.
but it seems that bp's ExamineDesktops() does ...
- Mon Jan 30, 2012 10:31 am
- Forum: Mac OSX
- Topic: ExamineDesktops() does not work in lion?
- Replies: 2
- Views: 1469
ExamineDesktops() does not work in lion?
on MacOSX 10.7, you can creat desktops(spaces) in mission control.
but how can we know the info of that?
I tried ExamineDesktops() with no success....
but how can we know the info of that?
I tried ExamineDesktops() with no success....
- Fri Jan 27, 2012 10:24 am
- Forum: Mac OSX
- Topic: invalid memory access on api call?
- Replies: 8
- Views: 3036
Re: invalid memory access on api call?
see the working code here:
http://www.purebasic.fr/english/viewtop ... 19&t=48995
http://www.purebasic.fr/english/viewtop ... 19&t=48995
- Fri Jan 27, 2012 10:22 am
- Forum: Mac OSX
- Topic: [OSX LION] Add/Check/Remove login item using CFPreferences
- Replies: 0
- Views: 3197
[OSX LION] Add/Check/Remove login item using CFPreferences
i'm new to purbasic and happy to play with it.
but using api calls is not easy in pb under lion,some times it just not work as it should be.... :|
after a hard work ( :shock: ),i managed to make these code working.
very much thanks to wilbert! :D
feel free to use these,and tell me if you made it ...
but using api calls is not easy in pb under lion,some times it just not work as it should be.... :|
after a hard work ( :shock: ),i managed to make these code working.
very much thanks to wilbert! :D
feel free to use these,and tell me if you made it ...
- Tue Jan 24, 2012 3:32 pm
- Forum: Mac OSX
- Topic: invalid memory access on api call?
- Replies: 8
- Views: 3036
Re: invalid memory access on api call?
I didn't look at your Remove procedure yet but the procedure to add should be working now
#plist = "loginwindow"
#pkey = "AutoLaunchedApplicationDictionary"
appFileName$ = StringField(ProgramFilename(),1,".app")+".app"
; *** code to get kCFBooleanTrue and kCFBooleanFalse ***
Global.l ...
#plist = "loginwindow"
#pkey = "AutoLaunchedApplicationDictionary"
appFileName$ = StringField(ProgramFilename(),1,".app")+".app"
; *** code to get kCFBooleanTrue and kCFBooleanFalse ***
Global.l ...
- Tue Jan 24, 2012 2:05 pm
- Forum: Mac OSX
- Topic: invalid memory access on api call?
- Replies: 8
- Views: 3036
Re: invalid memory access on api call?
Can you tell me where to find the file that contains everything ?
When I look at /Library/Preferences/loginwindow.plist it seems empty all the time.
check the following path:
"/Users/Your Name/Library/Preferences/loginwindow.plist"
please notice that the Library folder is hiden in your home ...
When I look at /Library/Preferences/loginwindow.plist it seems empty all the time.
check the following path:
"/Users/Your Name/Library/Preferences/loginwindow.plist"
please notice that the Library folder is hiden in your home ...
- Tue Jan 24, 2012 11:33 am
- Forum: Mac OSX
- Topic: invalid memory access on api call?
- Replies: 8
- Views: 3036
Re: invalid memory access on api call?
I changed some thing on your code.
It doesn't crash but doesn't seem to do anything either :?
appFileName$ = StringField(ProgramFilename(),1,".app")+".app"
ImportC "/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation"
CFSTR(cStr.p-ascii) As "___CFStringMakeConstantString ...
It doesn't crash but doesn't seem to do anything either :?
appFileName$ = StringField(ProgramFilename(),1,".app")+".app"
ImportC "/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation"
CFSTR(cStr.p-ascii) As "___CFStringMakeConstantString ...
- Tue Jan 24, 2012 4:22 am
- Forum: Mac OSX
- Topic: invalid memory access on api call?
- Replies: 8
- Views: 3036
Re: invalid memory access on api call?
plz....no one knows?
- Mon Jan 23, 2012 4:11 pm
- Forum: Mac OSX
- Topic: invalid memory access on api call?
- Replies: 8
- Views: 3036
invalid memory access on api call?
I'm learning about adding login item on MACOS LION.
but these code crash with memory access error, within the line "CFPreferencesSetAppValue(CFStringCreateWithCString(0,pkey$,0),newArrayRef,CFStringCreateWithCString(0,plist$,0))"
what should i do with "newArrayRef"? thanks!
Global plist ...
but these code crash with memory access error, within the line "CFPreferencesSetAppValue(CFStringCreateWithCString(0,pkey$,0),newArrayRef,CFStringCreateWithCString(0,plist$,0))"
what should i do with "newArrayRef"? thanks!
Global plist ...
- Fri Jan 20, 2012 8:45 am
- Forum: Mac OSX
- Topic: get UTC time offline?
- Replies: 2
- Views: 2391
Re: get UTC time offline?
you help me a lot, thank you wilbert!wilbert wrote:Code: Select all
Debug FormatDate("%hh:%ii:%ss", Date()); local time Debug FormatDate("%hh:%ii:%ss", time_(0)); UTC
- Fri Jan 20, 2012 7:41 am
- Forum: Mac OSX
- Topic: get UTC time offline?
- Replies: 2
- Views: 2391
get UTC time offline?
how can we get UTC time under macos?
- Thu Jan 19, 2012 1:08 pm
- Forum: Mac OSX
- Topic: MessageRequester question
- Replies: 0
- Views: 1525
MessageRequester question
did you notice that MessageRequester shows up then lost fucos in advance, the MessageRequester window always be the second one, not in front.
- Thu Jan 19, 2012 8:01 am
- Forum: Mac OSX
- Topic: systray icon with alpha chanle?
- Replies: 2
- Views: 1729
Re: systray icon with alpha chanle?
solved!thank you!wilbert wrote:Did you try a transparent png image ?

Code: Select all
UsePNGImageDecoder()
- Thu Jan 19, 2012 7:45 am
- Forum: Mac OSX
- Topic: systray icon with alpha chanle?
- Replies: 2
- Views: 1729
systray icon with alpha chanle?
i'm making my first app with pb4.6 under maces lion.
i try to use addsystrayicon but found that it doesn't support alpha chanle.
my question:
1. does AddSysTrayIcon only support .bmp under lion?
2. how can i make a icon with alpha chanle?
thanks a lot!
AddSysTraIcon(1, WindowID(0), CatchImage(0 ...
i try to use addsystrayicon but found that it doesn't support alpha chanle.
my question:
1. does AddSysTrayIcon only support .bmp under lion?
2. how can i make a icon with alpha chanle?
thanks a lot!
AddSysTraIcon(1, WindowID(0), CatchImage(0 ...