Questions tagged [cocoa]

20 questions
14
votes
3 answers

Is it possible to control the CAPS LOCK LED on OS X?

I don't use the CAPS LOCK functionality in OS X, so I disabled the key under the system preferences. Now that key is completely useless to me - ok, I could map the CMD/CTRL/ALT key to that key, but I already got keys for that… So what I have in mind…
DASKAjA
  • 842
5
votes
1 answer

Accessing the Unix environment from emacs and Cocoa apps in OS X Mountain Lion

I use emacs on my mac, I install the Cocoa version of emacs using homebrew. One problem is that in order to see the "Unix path" I had to replicate my path from .profile to .MacOSX/environment.plist I do it with this in my .profile: # PATH for emacs…
FCo
  • 151
5
votes
2 answers

How do I set my initial window position in Cocoa emacs?

I have the following set in my .emacs file: (if (window-system) (set-frame-height (selected-frame) 60) (set-frame-position (selected-frame) 50 30)) It sets the frame height correctly but not the frame position. I am running: GNU Emacs 23.2.1…
4
votes
2 answers

How to start SAMBA on MAC OS X from Terminal?

I am trying to enable SAMBA (SMB) from terminal. This enables AFP and File Sharing: sudo launchctl load -F /System/Library/LaunchDaemons/com.apple.AppleFileServer.plist But I want enable SMB too from terminal. How can I do that? I need this for MAC…
User1234
  • 247
4
votes
2 answers

How does iTunes keep on playing music if the entire system is frozen?

I've noticed this today - my entire system froze up solid, clock is frozen, nothing responds to clicks and key presses, and my time machine animation stopped going. While repartitioning my boot drive. I also had iTunes open, which happily kept on…
Tristan
  • 141
  • 4
3
votes
2 answers

On OS X, how do I start Cocoa emacs *and* bring it to front?

I wrote a little zsh function to allow me to run emacs from the command-line: function emacs() { /Applications/Emacs.app/Contents/MacOS/Emacs $@ & } This works perfectly, but it seems to start emacs as the last window in my Cmd-tab list. Is…
Jason Baker
  • 8,932
3
votes
1 answer

How to disable Guest Access from Terminal in Mac OS X?

I'm trying to disable Guest Account from terminal. I need the same effect like disabling System Preferences → Accounts → Guest Account → Allow guests to connect to shared folders. I think Guest Access is disabled by default on Lion, So I need it…
User1234
  • 247
2
votes
1 answer

install gem for older ruby 1.8 on Mac OS X 10.9 Maverics

I installed osx-trash using the answer here but got the error: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- osx/cocoa (LoadError) from…
simbo1905
  • 167
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
2 answers

Why cocoa packet analyzer shows "capture packets to a trace file" menu?

I am trying to use 'cocoa packet analyzer'('C.P.A'). I uses mac OSX and I installed this from appstore. After installed this, when I launch this program a popup comes out. Others say that to get started analyzing use "capture packets to a trace…
2
votes
0 answers

Issues installing .pkg file on OS X

I'm having a real hard time installing an app I made for Mac. I created the package with Xcode 4.6.1 on OS X 10.8. I can run the .pkg fine on 10.8. The deployment target was set to OS X 10.7. However, on 10.7 it always say "can't be installed on…
pdiddy
1
vote
1 answer

How do I get my cocoa emacs on Mac OS X to load my .emacs visual customizations for new windows (any document opened after the first)?

So I just downloaded emacs 23.1 for my new snow leopard macbook pro from http://emacsformacosx.com/ and it works like a charm, except... I have visual customizations in my .emacs, a few lines are extracted here: (set-background-color…
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
1 answer

How do I tell if I've Carbon or Cocoa installed on my Mac?

I need to compile some program with either Cocoa or Carbon windowing system. I have a 10.6.8 Snow Leopard installed on a i386 (at least uname -a tells me this) system. I opened the system-profiler and selected > Software > Frameworks. There are…
math
  • 2,693
1
vote
1 answer

Have shift act as state key (like iOS keyboard?)

It occurred to me today that I could type more efficiently if the shift key on my Mac desktop keyboard behaved the same way as the iOS keyboard. When I press shift, the next character would get capitalized (added behavior). If I hold down shift, all…
1
2