Questions tagged [objective-c]
14 questions
9
votes
2 answers
Prettier text dialogs in OS X scripts
I'm getting pretty sick of these default AppleScript and cocoaDialog dialogs:
I'd like to replace them with something closer to this:
Has anyone made a shell executable like cocoaDialog with a custom look for windows? Are there any other options…
Lri
- 42,502
- 8
- 126
- 159
3
votes
2 answers
How do I wipe all preferences and settings for a Mac app that's under development?
On iOS, if you want to remove all settings and documents for an application during development and start from a clean install, you just need to delete it. However, on the Mac, removing the application bundle does not clear all preferences for that…
Andrew
- 131
2
votes
1 answer
libssh2 - Agent Forwarding not working
I am using libssh2 library to ssh connections in my mobile application. Here I want to use Agent Forwarding support.
I have followed same procedure as they have provided in example here LibSSH2 Agent Forwarding.
I am able to create agent…
Niks
- 871
2
votes
1 answer
How to make my Mac screen a mirror of iPhone using AirPlay
I'm new to AirPlay. I want to find a good tutorial to learn about Airplay and its APIs and how I can use it for sharing my iPhone screen on my Mac device.
What I learned:
iPhone 4S+ will support AirPlay, but how can I make my Mac capture the…
Raju
2
votes
3 answers
How to pass command line arguments in Mac Application
I have created a Command line tool application ( Xocde --> New App --> Command line tool) and it's running without any problems. Now i want to run it through terminal and pass some command line arguments, something like this:
int main(int argc,…
Rohan
- 121
- 1
- 3
2
votes
4 answers
iOS Printing to Non-Airprint devices?
I have an iOS application that prints just fine. I'm connected to a WiFi network that has a printer that supports AirPrint and I can send to that printer just fine. But I also need to print to specialty printers (like a Datamax/Oneil or even a Boca)…
Unknown Coder
- 103
2
votes
0 answers
Command /usr/sbin/chown failed with exit code 1 Error when archiving
I'm trying to archive a project to submit it to the iOS App Store, but keep getting this problem. I have already set yes to the skip install option, re-installed Xcode, rebooted and re-copied my libraries, as well as edited my schemes. I've done my…
Sam Heather
- 121
1
vote
2 answers
Where does sandboxing stop?
I used Norton's iAntivirus app from the Mac App Store to scan my entire hard drive. As expected, it presented me with an Open dialog at the root of my hard drive. I clicked "Open" and let it scan. This caused me to wonder... if the user opens a…
Jack Humphries
- 199
- 1
- 1
- 4
1
vote
2 answers
Using sh -c in terminal
I have this command line that I enter into terminal and it works as intended:
dscl . -readall /Users UniqueID | awk '/^RecordName:/ {name=$2}; /^UniqueID: / {if ($2 > 500) print name}'
What I want to do is use sh -c "insert command string here" and…
John
- 221
1
vote
1 answer
How to load application from pc to ipod touch
I need to install application which is on my mac PC. My iPod software version is 1.1.5.
Can any one help me to how to install.
sai
1
vote
1 answer
What exactly package "gobjc" installs?
Trying to figure out what exactly "gobjc" installs, I did:
sudo dpkg -L gobjc and got a path to /usr/share/doc/gobjc
Did : sudo apt-file list gobjc and got a path to /usr/share/doc/gobjc
on this directory you can only find text files that are .gz…
jccastro
- 11
0
votes
2 answers
GCC/Clang: Available ObjC runtimes
A while ago, I discovered the ObjFW runtime for Objective-C, which is a pretty neat one and does a lot of things - and, is very tiny. But it made me ask lately, which runtimes are available on which targets - and how can one best find out? I'd like…
Ingwie Phoenix
- 1,397
0
votes
2 answers
How to launch a daemon as root in OS X
I put my plist in /Library/LaunchAgents and my exexutive program in /usr/libexec and daemon statrs when system startup . But this daemon is owned by user . I try to put my plist in /Library/LauchDaemons but it's not working and daemon doesn't starts…
mohammad
0
votes
0 answers
How to add feature “don't copy when pressing command” in this c program—macPaste?
https://github.com/lodestone/macpaste
https://github.com/lodestone/macpaste/blob/master/macpaste.c
With this little project, I can copy a text to clipboard with just select a text, in macOS.
This stuff saved my life, but in some circumstance, it’s…
user956609
- 145