You need to log in to create posts and topics.
Re: Babysteps03
77,940 Posts
#1 · August 15, 2021, 12:05 pm
Quote from Forum Archives on August 15, 2021, 12:05 pmPosted by: fblistserve <fblistserve@...>
Bill wrote:
short I%Is the variable I% now off limits?
Traveling now, so my answers are abbreviated.
Capital 'I' happens to also be a C macro, which causes a clash. C defines all its macros in capitals, so starting variable names with a lower-case letter should avoid conflicts ( i.e iDX, bState ).You realize, of course, that the percent ( % ) suffix is unnecessary because 'short' already defines the variable type. Those variable suffixes harken back to 32-bit days. With 64-bit machines the compiler decides the size of the variable. For example, a 'long' is always 4 bytes on a 32-bit mac but on a 64-bit mac ( particularly those running a 64-bit only macOS ) a long will be 8 bytes.Bill wrote:An input text file created with Text Editor with 3 recordsRecord1Record2123needs a carriage return (or perhaps line feed) after record 3, or a fourth blank record to allow record 3 to be input correctly.
The portrayal of the data above suggests all three records have a carriage return, else they would be on the same line.Would need to see the details of "input correctly" to know if there is a problem. Please post a code sample showing the situation.Bill wrote:
When I use the Run command in the FB editor to compile and run my test program (Test01) the first time after making changes in the program, OS 11.4 Big Sur asks me if I want to allow Test01 to access files in my Documents folder. I say allow and the existing AuditTrail file is deleted, but no new one is created. If I use the Run command again immediately, I’m not asked for permission and the Audittrail file is created.
Requesting access is currently normal security behavior for macOS Catalina +. If you're using OPEN "O", the file is deleted before any further processing commences. I can check that further when I'm not traveling. Running an app via FB incurs extra security ( because FB is launching your app after it's built ). There is a lot on the internet about all of this. No time right now to find some good links for you.The GateKeeper settings ( Sys Preferences, Security & Privacy, General tab ) of the mac where the app runs also determine whether the app needs to be code signed and notarized by Apple. GateKeeper's "allow apps downloaded from" setting can be set to "Anywhere" to reduce security if needed. To do so:Open Terminal app and type the following: sudo spctl --master-disable it will ask for your admin password. Supply it and press enter. It should come back to the command prompt.Open Sys Prefs Security & Privacy again and it should show the "Anywhere" option--
To unsubscribe, send ANY message to: [email protected] To access the list archives, go to: http://freegroups.net/groups/futurebasic/
Posted by: fblistserve <fblistserve@...>
Bill wrote:
short I%Is the variable I% now off limits?
Traveling now, so my answers are abbreviated.
Capital 'I' happens to also be a C macro, which causes a clash. C defines all its macros in capitals, so starting variable names with a lower-case letter should avoid conflicts ( i.e iDX, bState ).
You realize, of course, that the percent ( % ) suffix is unnecessary because 'short' already defines the variable type. Those variable suffixes harken back to 32-bit days. With 64-bit machines the compiler decides the size of the variable. For example, a 'long' is always 4 bytes on a 32-bit mac but on a 64-bit mac ( particularly those running a 64-bit only macOS ) a long will be 8 bytes.
Bill wrote:An input text file created with Text Editor with 3 recordsRecord1Record2123needs a carriage return (or perhaps line feed) after record 3, or a fourth blank record to allow record 3 to be input correctly.
The portrayal of the data above suggests all three records have a carriage return, else they would be on the same line.
Would need to see the details of "input correctly" to know if there is a problem. Please post a code sample showing the situation.
Bill wrote:
When I use the Run command in the FB editor to compile and run my test program (Test01) the first time after making changes in the program, OS 11.4 Big Sur asks me if I want to allow Test01 to access files in my Documents folder. I say allow and the existing AuditTrail file is deleted, but no new one is created. If I use the Run command again immediately, I’m not asked for permission and the Audittrail file is created.
Requesting access is currently normal security behavior for macOS Catalina +. If you're using OPEN "O", the file is deleted before any further processing commences. I can check that further when I'm not traveling. Running an app via FB incurs extra security ( because FB is launching your app after it's built ). There is a lot on the internet about all of this. No time right now to find some good links for you.
The GateKeeper settings ( Sys Preferences, Security & Privacy, General tab ) of the mac where the app runs also determine whether the app needs to be code signed and notarized by Apple. GateKeeper's "allow apps downloaded from" setting can be set to "Anywhere" to reduce security if needed. To do so:
Open Terminal app and type the following: sudo spctl --master-disable it will ask for your admin password. Supply it and press enter. It should come back to the command prompt.Open Sys Prefs Security & Privacy again and it should show the "Anywhere" option
--
To unsubscribe, send ANY message to: [email protected] To access the list archives, go to: http://freegroups.net/groups/futurebasic/
Click for thumbs down.0Click for thumbs up.0