Re: Cocoa-dev Digest, Vol 16, Issue 63

2019-07-26 Thread Kirk Kerekes via Cocoa-dev

> what I really want is to do is drag a couple of URLs into System Preferences? 
> ?Full Disk Access? list, and that one accepts only lists of URLs, as far as I 
> know.
> 
> Now, I want it to look like a user is only dragging an icon of my application 
> (which he/she really does), but application?s privileged helper needs to be 
> added into ?Full Disk Access? too. I don?t want user to see that (and 
> potentially get confused),

Your intentions may be pure, but you are trying to fool the user into enabling 
access for something behind their back. 

This is a Bad Idea. 

I suggest you look for a transparent approach that does not involve subterfuge. 

Especially if you intend to be in the App Store. 

It doesn’t matter if others have done it. 

It is still wrong. 


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Need for Swift

2019-10-11 Thread Kirk Kerekes via Cocoa-dev

> On Oct 11, 2019, at 7:55 PM, cocoa-dev-requ...@lists.apple.com wrote:
> 
> Me, I still don?t understand why, given the long history of support at 
> Apple/NeXT for C++ and the maturity of the compilers available, there is any 
> need for Swift. But there it is.

It is my inference that Swift arose out of a perceived need for a language that 
strongly  inhibited bad/lazy/sloppy programming practices, and yet looked 
“normal”. 

I further infer that the perceived need arose due to the confluence of 
aggravation over publicity over security bugs and the desire to develop 
autonomous vehicle software. 

What they have ended up is a kind of disciplined, compiling Python — not really 
a bad concept, given the goals. 

I would not want to be at the mercy of a vehicle piloted by C++.  Or 
Objective-C, for that matter. (And I happily use ObjC every day). 

Kirk Kerekes 
(iPhone)
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Cocoa dylib access by C program

2020-11-13 Thread Kirk Kerekes via Cocoa-dev
Change your .c files to .m. Then you can use objective-c calls _in_ your C 
code. 

Objective C is a proper superset of C, and so you just need to inform the 
compiler of your intent by changing the file extension(s). 

Kirk Kerekes 
(iPhone)

> Message: 1
> Date: Fri, 13 Nov 2020 11:16:23 -0800
> From: Carl Hoefs 
> To: cocoa-dev 
> Subject: Cocoa dylib access by C program
> Message-ID:
><356d1145-0bbb-4dd6-a424-9ac48d98a...@autonomy.caltech.edu>
> Content-Type: text/plain;charset=us-ascii
> 
> I have built an ObjC/Cocoa/Foundation library.dylib; it works well when 
> linked with ObjC apps. 
> 
> But now I need to link a C program against that library. How do I invoke the 
> ObjC library methods from a C program? (I know I can add C function entry 
> points to the library, but how do they invoke the internal ObjC library 
> methods?)
> 
> -Carl
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Indexing broken for one project

2022-02-12 Thread Kirk Kerekes via Cocoa-dev
Sort of straw-grasping I would try with Xcode under these circumstances…

Try changing the target CPU/OS setting to something else, build, and see if the 
indexing works. 

If it does, make the minimal changes needed to appropriately build your target. 

If it doesn’t, discard straw. 

Kirk Kerekes 
(iPhone)
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com