How to write on /Library/Fonts folder on Mac with SMJobBless function

This is a discussion on How to write on /Library/Fonts folder on Mac with SMJobBless function within the Mac OS X forums, part of the Mac Software category; Hi guys, I try to use SMJobBless function to authenticate for my application can do write on /Library/Fonts but not working, if (![self blessHelperWithLabel:@"com.apple.bsd.SMJobBlessHel per" ...

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Jun 2013
    Posts
    3
    Member #
    5908

    How to write on /Library/Fonts folder on Mac with SMJobBless function

    Hi guys,
    I try to use SMJobBless function to authenticate for my application can do write on /Library/Fonts but not working,

    if (![self blessHelperWithLabel:@"com.apple.bsd.SMJobBlessHel per" error:&error]) {
    NSLog(@"Something went wrong! %@ / %d", [error domain], (int) [error code]);
    } else {
    //Access to this point.
    /* At this point, the job is available. However, this is a very
    * simple sample, and there is no IPC infrastructure set up to
    * make it launch-on-demand. You would normally achieve this by
    * using XPC (via a MachServices dictionary in your launchd.plist).
    */
    NSLog(@"Job is available!");
    bool result = false;
    result = [[NSFileManager defaultManager] isWritableFileAtPath:@"/Library/Fonts"];
    [self->_textField setHidden:false];
    }
    My application printed "Job is available" but when i check authorities write on /Library/Fonts, result is false

    Please tell me reason and resolve it.

  2. Ads

    Posts
    Many

  3. #2
    Super Moderator
    Join Date
    Aug 2011
    Location
    York, UK
    Posts
    2,354
    Member #
    3040
    Liked
    134 times
    I'm afraid this isn't a programming related forum....I would suggest posting this on the Apple Developer forums:

    https://discussions.apple.com/commun...?view=overview
    'Deep Thought' - Mac Mini Late 2018- macOS Mojave (10.14.5)
    'Marvin' - Mac Mini Late 2014 - macOS Mojave (10.14.5)
    'Orac' - MacBook Pro 13" Mid 2012 - macOS Mojave (10.14.5)

    iPhone 6S - iOS 12.3.1
    iPad Pro 12.9" - iOS 12.3.1

Remove Ads

Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. How to install fonts on Mac OS
    By phamvanan in forum Mac OS X
    Replies: 3
    Last Post: 06-21-2013, 10:50 AM
  2. iOSFonts.com Tells You All About… iOS Fonts
    By sparkyscott21 in forum iOS Apps
    Replies: 0
    Last Post: 06-18-2013, 02:25 PM
  3. Replies: 0
    Last Post: 01-02-2013, 09:14 PM
  4. Replies: 1
    Last Post: 11-19-2012, 11:07 PM
  5. Lion [10.7] How-To: Make Library folder visible under Mac OS X Lion
    By JohnnyApple in forum OS X How-To's, Tutorials, Tips & Tricks
    Replies: 0
    Last Post: 07-21-2011, 12:44 PM

Tags for this Thread

Contact Us
Back to top