Hello,
I am new to Core Data and am stumbling on the right way to set up a query.
My managed object model includes the classes Apartment, Lease, and what I would otherwise call a join table called ApartmentLease. This looks like:
/-----------------\ /-----------------\ /-----------------\
| Apartment | | Apartmen...
I'm trying to follow step 1 of this tutorial, which was made for an older version of XCode than the one I'm using. I'm supposed to drag a connection from a green NSObjectController icon to a blue object icon, and select the "content" outlet. However when I try to do this, no outlets are showing. How can this be done?
...
I have a nib file I've loaded like so [NSBundle loadNibNamed: @"myNibFile" owner: self ] and it pops up fine, but when it loses focus, it simply disappears. I've checked to see if it's vanishing behind my main window but it's not. My app is pretty big so I'm not sure what could be causing it. I have garbage collection enabled if that mak...
Currently I have one managedContext, many NSArrayControllers of entities which are all pretty interrelated, and several Windows which each make use of 1 or 2 of the NSArrayControllers. The windows use core data bindings, all set up via cocoa bindings done in IB
I have 1 nib (xib) right now with everything in there. Often when using my...
Today I just got a new version of xcode, version 3.2.3 and something changed. Now I can't view files in the editor view to the right of the groups and files pane, unless I right click the file and do view as source code file. If I double click the file it opens a new separate editing window. Really annoying stuff. Is there a preference t...
I can't seem to find a way to get notified when an NSTextField loses focus by pressing the Tab key. I get a nice textDidEndEditing when clicking another control or when pressing Enter, but not if I change the focus by pressing the Tab key.
Also tried to yank KeyDown and doCommandBySelector for this purpose but I got nowhere.
Any ideas?...
Hi,
I cannot seem to find it in the documentation but I'm looking for a way to run a method whenever a window is displayed on screen after launch of my app or after it has been closed and then reopened again.
...
Hello Everyone,
I'm new to Objective-C programming and was wondering if I could get some help.
I'm trying to access the values from a CFDictionary. I've started by implementing code suggested in this question
CFTypeRef r = IOPSCopyPowerSourcesInfo();
CFArrayRef array = IOPSCopyPowerSourcesList(r);
CFDictionaryRef powerDic = IOPSGet...
Hi all,
I want to perform encryption - decryption of certain audio - video files.
Can anyone suggest me some suitable algorithms in cocoa, objective- c, c, or c++ to accomplish it?
You can suggest me some link and/ or third party software for it.
Thanks,
Miraaj
...
I want to implement an NSSearchField showing search results similar to Safari's, but I cannot figure out how to show the menu programmatically. Any pointers would be greatly appreciated.
Update: I tried doing this programmatically by calling @-performClick:@ on the @NSButtonCell@ object that represents the search button inside the searc...
Addition: Think its worth having a look at this again as a number of new books havve/are being released with updates to iOS4 and the inclusion of iPad programming.
Ok, I have read a number of posts regarding iPhone dev books, Cocoa and Objective-c. The general consensus seems to lead to one of 4 books.
Kochans Objective-C book.
Hill...
Maybe you know any analogs of g_quark_from_string() and g_quark_to_string() in CoreFoundation or other frameworks?
...
Hello,
I just started playing with Core Data.
I created an entity called Task with a property called Description. I opened Interface Builder and I added Core Data Entity view.
Picked my entity, property and tried to build the application. After clicking on "Add" button it crashed with EXC_BAD_ACCESS.
After I've renamed this attribute...
I work on a very keyboard intensive application. Both hands on the keyboard. No hands on the mouse.
A user can, via the keyboard, popup a context menu, select an item and finally hit enter.
[NSMenu popUpContextMenu] displays the menu without highlighting any item. The user will have to press arrow_down one time in order to highlight th...
I have a basic NSWindow with no decorations (titlebar etc), NSWindow set to not opaque no shadow etc. It sits at the screensaver level (so "topmost" window of application)
contentView is set to a subclassed NSView of mine that says "Loading" achieved by drawing a CIImage.
This entire window is centered in the screen. It's opened wh...
I'm a newbie in Cocoa developer, beside this I know well a lot of patterns. So far until now I understand that MVC have in mind avoid dependences between model, view and control.
Well, I gave a look in some examples of controller and I found a behavior that apparently do not agree with that goal. Normally, in theses examples, I found a c...
I tried to use the method setString to change the text in a textfield and it didn't work. Then I changed it to setStringValue and it worked. So what is setString used for?
...
Hello,
I try to use this library http://github.com/eczarny/xmlrpc to retrieve information from an xml-rpc server.
The connection is ok and I can see the parsed object display in the console but I don't know how to read the response object even if I tried a lot.
Here is the console result of NSLog(@"%@", [response object]); (response i...
Perhaps a confusing title but let me explain the issue through steps:
I have a custom style NSStepper control. If I increment up to the point of my setMax the value will reach max as expected. I can then keep clicking increment and the value of course does not increment.
However if I wanted to decrement from this point I need to cli...
The title pretty much says it all, I have some key events, that correspond to buttons also. What property/method to I have to set/call for a button to look depressed (change state?) for say half a second?
Thanks alot in advance!!
James Hartt
...