Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged cocoa

0 votes
846 views
1 answer
    I want to count the lines in an NSString in Objective-C. NSInteger lineNum = 0; NSString *string = @"abcde fghijk ... } Is there an easier way? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
993 views
1 answer
    I have a simple Cocoa app using a NSWindowController subclass. In the nib I have set: File Owner's class to my ... 't figure out what it is. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
547 views
1 answer
    In one of my methods i have this code: -(void)myMethod { UIBezierPath *circle = [UIBezierPath ... must be simple. Thanks See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
635 views
1 answer
    Since this question was originally asked, UIScrollView deceleration rate customization has been added via the decelerationRate ... to do it. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
602 views
1 answer
    I've looked over the Security framework documentation but I can't seem to be able to find a way to get ... Are there methods to accomplish this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
801 views
1 answer
    How to change Mac display brightness from cocoa application? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
711 views
1 answer
    On an iPhone I can use [[UIDevice currentDevice] uniqueIdentifier]; to get a string which identifies this device. Is ... . Can you help me ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
799 views
1 answer
    I'd like to customize the way I draw the window title bar on OS X. Specifically, I'd like to do ... provides, but neither seems appropriate. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
681 views
1 answer
    I'm logging a bunch of data with NSLog(). Is there a way to capture the log data when my iPhone is not ... I go far away from my desk. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
557 views
1 answer
    I have a small device which connects to a battery powered monitor. When I turn the wheel on the device, the ... and isn't very straightforward. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
666 views
1 answer
    Whenever I use NSLog(), it always shows this mysterious "10b" next to the process ID. I know that this is ... delme[38163:10b] Hello, World! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
570 views
1 answer
    What is the largest amount of objects I can put in my NSArray? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
721 views
1 answer
    I have an UIView and I add a editable UITextView to it, UITextView *textView = [[UITextView alloc] initWithFrame: ... . Anybody got an idea? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
600 views
1 answer
    Can you fast enumerate a NSIndexSet? if not, what's the best way to enumerate the items in the set? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
472 views
1 answer
    I'm writing a game for Mac using Cocoa. I'm currently implementing hit testing and have founds that CALayer offers ... any way to do this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
449 views
1 answer
    Something I have been wondering about properties for a while. When you are using properties, do you need ... @synthesize operation,link; @end See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
616 views
1 answer
    If you Google "iphone data protection apis" you'll see a zillion hits based on press releases. If you check out ... for 3rd-party apps. TIA! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
593 views
1 answer
    We are developing an application for the Mac App Store using Qt 5.2.0.Framework on MacOSX 10.9. Here is a ... is being delayed by this. Thanks See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
532 views
1 answer
    I have an external console application (on OS X) that emits a sequence of integers from 1 to 100 to ... the child process has completed. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
458 views
1 answer
    Do you know how I may know if the iPhone is on vibrate mode ? I don't find anything about this on the Web.. ... or not (vibrate on). Thank you. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
529 views
1 answer
    I want to display NSDates in a "human-friendly way", such as "last week", or "a few days ago". ... is there already some library for this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
481 views
1 answer
    i need to put asynchronous operations into an operation queue, however, they need to execute on after the other self. ... ) { }]; }]; See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I am trying to set an attributed string within NSTextView. I want to increase its height based on its content, ... not get any success :( See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
524 views
1 answer
    I was wondering if it was possible to find out the UDID of the user's iPhone. Can someone shed some light? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
657 views
1 answer
    I am trying to add a hyperlink to certain parts of my text which is being handled and drawn ... NSMutableAttributedString and CoreText? Thanks See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
579 views
1 answer
    How can I draw grid lines in an NSTableView only for rows that are populated? When I set the grid style mask to ... of sample code to do this. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
620 views
1 answer
    I need to implement event when i close my app in iOS like following pic. I want to catch that event when i close ... . Which event i need to do? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
609 views
1 answer
    I'm trying to implement drag and drop from the Finder into an NSTableView of my app. The setup uses an NSTableView ... . Where am I going wrong? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...