Questions tagged [Cocoa] (58)

0
answer

How to make a text box with a hyperlink?

Need an analogue QLabel, just a text box which displays a rich text, fonts, hyperlinks are clickable. And so you can add it via Interface Builder. NSTextField does almost what we need, but the links it only displays when the element has focus, without focus links look like normal text. It is possible using NSAttributedStrin...
Melisa.Ernser32 asked March 14th 20 at 15:47
0
answer

Cocoa touch plugins for Interface Builder

If anybody had the experience of creating cocoa tocuh plugin for IB? Standard project for this plugin is not in XCode4.preview5... documentation on this subject in the same way. What techniques exist to design a custom control in a semblance of "component" for easy use in other projects?
iva_Waelchi asked October 14th 19 at 10:44
1
answer

Night mode in IPhone/IPad?

Please tell me how to do night mode in the app? All was red, as for example in Solar Walk
reid.Fer asked October 10th 19 at 13:20
1
answer

Record audio in my iPhone app

Hello! Faced with a problem, I have an app which has 3 buttons. When you click each of them plays the sound. How can I write it? Ie, how would the record sound inside the app. If you are an iPhone developer and have a day, write! Pay ;)
judge.Boyer asked October 10th 19 at 05:44
2
answers

To calculate the height(in pixels) NSTextField in Cocoa?

Friends! The actual question, I have a web service with a dynamically stretch the data in NSTextField. Can, a wonderful framework to solve my problem? P. S — if you get the text box height, the height of the form must also change. If someone has decided, friends will respond:)
judge.Boyer asked October 10th 19 at 01:10
0
answer

A limit on the number of input lines in NSTextView?

There is a field to enter the text of the NSTextView. What you need: 1. to limit the number of characters to 150 maximum; 2. the maximum number of rows to limit to 4. The first thing to do is quite simple. But on the second point, I have a problem. I can count the number of lines of text in a fieldNSLayoutManager *layoutMan...
jolie45 asked October 9th 19 at 19:18
0
answer

Cocoa: How to track the event of the Trackpad to Scroll in any app so to know the position of the fingers on the device?

Rummaged a lot of information on the topic, but nothing found.The problem is this: what would people app, you need to capture the event of scrolling to understand what it is that is scrolling on the trackpad and calculate the position of the finger on the device. In other words, you need to understand from which point the ...
mike_T asked October 8th 19 at 01:06
1
answer

How to block starting of the screensaver in OS X and unlock ago?

Good day to all! I have a seemingly simple goal: to block the launch of the screensaver, as it does, for example, any video player. Function IOPMAssertionCreateWithName and IOPMAssertionRelease from IOKit nakopilis fast as the demo code. But, unfortunately, I have not earned. More precisely, work, but not fully. Screensaver...
Melyssa.Willms asked October 3rd 19 at 20:18
1
answer

How to make a window transparent?

Is it possible to make the window completely transparent, but controls that are located inside this window should be visible?
Enola_DAmore asked October 3rd 19 at 15:08
7
answers

The problem with segue-transition in the Storyboard?

Have a UITableViewController with UISearchDisplayController which displays a list of some items. In order to in the main table and the lookup table the information was presented in the same was created GoodsCell cell (inherit from UITableViewCell). GoodsCell created programmatically and has the following simple form:@interf...
Philip.Batz asked October 3rd 19 at 03:51