Questions tagged [cocoa]

Cocoa is a developer framework for making macOS and iOS applications. Note that programming questions are off-topic on Ask Different.

Filter by
Sorted by
Tagged with
1
vote
1answer
221 views

How to determine which one process owns particular window

How to know which process or App is responsible for creating/managing a particular window in macOS? In my case I got really cryptic error message, in non modal free floating window. Using message ...
-1
votes
1answer
1k views

Coco-applescript is in my documents folder. I am not a developer. Is it changing the way my apps work?

I found Cocoa-AppleScript Applet 2.app in my documents folder. What is this? I noticed it when I was in iTunes and was going to add to my library. I just had to reinstall my OS because of problems and ...
3
votes
1answer
109 views

What is the name of Network Setup Assistant's window?

This is a somewhat common interface, and is generally used to move a user through a series of sequential operations. It can be found in Apple's Network Setup Assistant (System Preferences > Network > ...
0
votes
1answer
215 views

How can get an applescript to add itself to the open at login menu automatically

In El Capitan how can I get an applescript to make itself open at login? Such as adding it to the login items automatically? I want to be able to send people the applescript and the first time they ...
2
votes
0answers
132 views

Monitoring directory in finderSync extension failed to work [closed]

I have developed a Cocoa application with a FinderSync extension through which a newly created directory is monitored. Sometimes it works fine but sometimes when I activate the Drive and Dropbox ...
2
votes
0answers
127 views

How to customize drag-n-drop-to-Terminal path escaping results?

How can I change the way in which filenames are escaped (formatted) when dragged from applications and dropped into Terminal? For example, paths may be escaped with \, just spaces (), or other ...
2
votes
1answer
158 views

moveWordForward: on ⌥-f in El Capitan doesn't repeat

I've used Jacob Rus' cocoa text system bindings for many years to give me more emacs like bindings in cocoa text fields (apple doc here. Since El Capitan I find that option-f which does ...
3
votes
1answer
132 views

How to get the postion of the lid

I am trying to figure out what the position of the lid is. Whether it is open or closed. Is there a terminal command or a cocoa code snippet for this? I've already tried pmset -g but i can only get ...
1
vote
2answers
791 views

How to install both Cocoa and X11 of Emacs (preferably with Homebrew)?

I want to try out and compare both the Cocoa- and X11-based versions of Emacs. In general, I try to install all such packages through Homebrew, but in this case it looks like I Homebrew requires me ...
2
votes
3answers
3k views

How can I change the aqua theme in Yosemite?

How can I change the aqua theme/skin to a dark one in Yosemite? I'm referring to the window title bars, scroll bars, buttons, etc (the cocoa aqua ui theme?). Everything is grayish by default, but i'd ...
1
vote
1answer
440 views

Remove titlebar from window like Vimperator

There's a plugin for Firefox called Vimperator which is what it sounds like -- a vim style interface for Firefox. It has the curious ability to nearly remove the titlebar of the Firefox window. This ...
0
votes
1answer
1k views

Focus most recent window of pid without requiring accessibility approval

I currently use this AppleScript to try to set focus to the most recent window of a PID, in example here my pid is 450. tell application "System Events" set frontmost of the first process whose ...
4
votes
1answer
2k views

Is it possible to submit not sandboxed app to the Mac App Store

I have an AppleScript Cocoa application that does a lot of shell scripts like kill or chflags. Is there any way I can try to send it on review to MAS and get it approved? According to Wikipedia: ...
0
votes
1answer
77 views

Make Emacs-style shortcuts behave differently than arrow keys.

This is a bit of a weird question, I'll admit, but this is something that really annoys me. I have come to rely on the Emacs shortcuts (mainly ctrl ^+A, ctrl ^+E, ctrl ^+B, and ctrl ^+F) and the ...
2
votes
2answers
2k views

Does anyone know how to disable unicode text input in text fields?

I absolutely love the Cocoa text engine. A few modifications to a little xml file - ~/Library/DefaultKeyBinding.dict - and you can get just about any key sequence to work in any standard Cocoa text ...
0
votes
1answer
797 views

Display forwarding - for non-X programs?

I ask this anticipating the answer is 'no', but - is it possible to forward graphics windows on mac the way you would forward X11 windows, i.e. via ssh? I'm thinking specifically of the python ...
2
votes
1answer
890 views

Programmatically read both per-tab Terminal.app titles

When bringing up the Inspector (⌘I) in Terminal.app to edit the title (⇧⌘I), there are actually two titles that can be entered. The first is known as the Tab Title and affects the terminal window ...
0
votes
1answer
62 views

Help. Question about run application on IOS 5.1 [closed]

I am using Xcode 4.2 with iOS 5 to develop an application. This application doesn't include any new features provided in iOS 5.1. So, if I submit this app to App Store, can the users download it and ...
0
votes
1answer
2k views

How to get the system language or the language that was selected when Mac OS X was installed

I know the common sudo languagesetup to set the system language. Does someone know how to get the system language or the language that was selected when Mac OS X was installed?
0
votes
2answers
188 views

Is there a tool that identifies which NSControl is under the cursor? [closed]

I'm looking for a tool that could help me understand the layout of a closed source Mac OS applications in term of Cocoa controls. I saw this for in Firefox with the 'inspect' feature (for HTML/CSS); I ...
0
votes
1answer
420 views

New iPad camera button

I am trying to draw a button in my iOS app which would look exactly like a button in camera App of the new iPad (like on this image) Since I don't have the new iPad, I can't check it by my own. But ...
6
votes
2answers
2k views

Is it possible to make all text fields in OS X editable with Vi keybindings?

What I'm looking for is a way to use Vi-style keybindings throughout OS X, similar to how invoking: $ set -io vi in a Terminal will give Vi-style keybindings when using the shell. I'm guessing this ...
1
vote
1answer
2k views

GUI for C++ on Mac OS X [closed]

What GUI or framework should I use for both 2D and 3D applications? I'd like to use C++ as much as possible versus other pseudo languages such as Objective C. I'm confused so if this question makes no ...
6
votes
2answers
586 views

Is there a way to make Lion's scrollbars visible on mouseover them?

I have started trying the "Jump to the spot that's clicked" option under General System Preferences because I'm pleased by Lion's vanishing scrollbars but they complicate finding the current location ...
3
votes
1answer
3k views

Devs, can 3rd party apps access Safari's Reading List?

Any chance iOS 5 lets devs access Reading List in Safari? A potential Read Later option for Twitter clients, etc. I've been asking devs through Twitter for a while, but am yet to hear anything back.
2
votes
1answer
147 views

Downgrading IOS from IOS 5 to 4.2

I have upgraded my iPod to IOS 5 but now I want to go back to IOS 4.2. How can I do this. Is there any feature in iTunes which can be utilized or I need a .iDYSM file.
1
vote
2answers
386 views

How can I re-route Cocoa applications through ssh -X?

Is is possible to re-route Cocoa applications through ssh -X? I like being able to route X applications, but I want to route Cocoa applications too. Any ideas?
4
votes
4answers
987 views

Examples of apps in the Mac App Store not made with objective-c/c/c++?

Are there any apps in the store made using mono, ruby or lisp or put together in another alternative way. Do you know of any? The reason I'm asking is because I'm already making apps using cocoa/...