In the background of my view, I draw a light blue color. And in the middle, i have a square box that is supposed to have an even lighter gray in it that has a 20% transparency. But for some reason the transparency is on top of a black background instead of a blue. I'm sorry If i'm not being clear.
...
Messing about a bit, i have a working Adobe After Effects plugin with a bit of Obj-c / Cocoa in it (NSArray and custom objects - not ui stuff). The SDK guide states:-
Always use After Effects memory allocation functions. In low-memory conditions (such as during RAM preview), it’s very important that plug-ins not compete with After Ef...
What customization options are there for Cocoas NSFontPanel?
The NSFontPanel accessible in iWork Pages has "Text Underline", "Text Strikethrough" and "Document Color" controls at the top. We don't want these in our NSFontPanel. Is there any way to remove or disable these controls?
...
I have an app that allows multiple windows. I have a strange bug where, if I repeatedly open and close windows, new windows are positioned lower and lower on the screen. I would expect this if I were keeping the windows open, but it seems that the OS X window tiling mechanism is unaware of when my windows are closing.
Potentially re...
How do I use NSXMLDetector to find RSS links in HTML files, the tags in the source are like so :
<link rel="alternate" type="application/rss+xml" title="CNN - Top Stories [RSS]" href="http://rss.cnn.com/rss/cnn_topstories.rss">
<link rel="alternate" type="application/rss+xml" title="CNN - Recent Stories [RSS]" href="http://rss.cnn.c...
Hi,
I've a window that will have an unknown amount of text fields, determined by the content of a remote server.
In high level terms, how should I go about this? Create a custom view or create an empty window with a backing NSWindowController and then add stuff to it when the window is opened?
I've seen the examples on the O'Reilly Co...
Greetings,
I am puzzled as to how and when drawRect is supposed to be called in a NSCollectionView subclass.
I implement drag and drop operation in order to move NSCollectionViewItems within the collection, and would like to draw a visual indication of where the drop would end.
The subclass does not call drawRect during the drag sessi...
it's possible to get window width or height while resizing it? not on start or end of resizing (viewWillStartLiveResize, viewDidEndLiveResize), but in real time?
...
Hey, Im a newbie in cocoa and I have a string and I am trying to count how long it is. I have been searching through Apples docs but I can't find anything.
NSString *word = @"word";
How would I figure out how many characters is in a string?
Thanks
...
Developer Documentations doesn't provides fully describe of registerForDraggedTypes method. For example, i want that my app allow access only "*.abc" files. How can i do this?
...
I have a view controller that can fetch many different types of entities from my MOC. How can I tell what the entity is for an object of the type NSManagedObject?
...
as topic, is possible to play avi on Mac ? which framework could be use ?
Thanks for your helping in advance .
Regards
...
I have a Universal app which is targeting 10.5 and which uses garbage collection. I am building for ppc, i386 and x86_64.
I don't have access to a physical PowerPC machine so I am trying to use Rosetta to confirm that the PowerPC portion of the app works correctly.
However, as soon as the app is launched in Rosetta it immediately crash...
I want to read alias in Mac OS X programatically. When I tried it always read original file.
Any idea how it can be done?
thanks for your all suggestions.
...
Hi,
I have an NSMenu that contains NSMenuItems with custom views. I want it so that when the alt button is pressed, the menu items would change part of their look (through their view). I found setAlternative in the NSMenuItem docs, however, in practice I could only get it to work with NSMenuItems without custom views. As soon as I se...
I have spent ages trying to figure this out and I am still having problems. I want to rotate an image a random number of time - say 5 and a bit - then have it stop. I then want to rotate it again FROM ITS STOPPED POSITION. I am having difficulty with this so maybe someone can advise me on the right way to do it.
Ok so I am using a CABa...
How can I programmatically change the keyboard layout in Cocoa?
Assume I have, say, two active ones "Estonian" and "U.S." in the System Preferences (i.e. those two layouts visible in the keyboard layout menu bar).
So how would I read that those two are available, and how would I programmatically change between them?
...
Hi,
I am trying to create a number dialing text field, that is, a text field that works in conjunction with an NSStepper sitting next to it.
The text field should display floats and allow the user to use the scroll wheel to adjust the number it is displaying as well as the up and down arrow keys to the same effect.
It should also swit...
This class I'm working with has three instance variables I'm interested in, NSmutablearrays xArray yArray and zArray, there are also other NSmutablearrays, a, bArray and c.
I just added accessors
- (NSMutableArray *) xArray {
return xArray;
}
ditto for y and z.
However, it's returning yArray, zArray and bArray for some reason.
Why ...
I have the value of the epoch time like say 123456789, now i want to convert this into NSDate in cocoa framework. can anyone show me?
thanks
...