As many of you may know, an NSTreeController bound to an outline view can display duplicates while presenting core data entities.
A temporary solution is to add 'parent == nil' to the predicates, but this only returns parent entities. If, for instance, a user is searching for a sub-entity, the requested sub-entity won't be displayed.
...
Ok, well I have sorta of an odd situation. I have a two applications. One is the main application and the other is a helper bundle that is loaded during run time. What I want to do is to call a function defined within the main application from the bundle so that code does not have to be copied over. I have tried setting the header declar...
Is it possible for xcode to have an audio level indicator?
I want to do something like this:
if (audioLevel = 100) {
}
or something similar...
Any ideas?? Example code please?
I'm VERY new to objective c so the more explaining the beter! :D
...
- (IBAction) charlieImputText:(id)sender {
NSAppleScript *keystrokeReturn = [[NSAppleScript alloc] initWithSource:@"tell application \"System Events\" to keystroke return"];
[keystrokeReturn executeAndReturnError:nil];
[progressBarText startAnimation:self];
charlieImputSelf = [sender stringValue];
NSAppleScript *sendCharlieImput = [[...
I am trying to get the scroll position of my UITableView, however when I implement any of the UIScrollViewDelegate methods, contentOffset always returns nil for me.
For example:
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView {
NSLog(@"offset: %@", [scrollView contentOffset]);
}
The log returns as offset: (null) w...
Here is the code:
- (IBAction) charlieImputText:(id)sender {
[progressBarText startAnimation:self];
charlieImputSelf = [sender stringValue];
NSAppleScript *sendCharlieImput = [[NSAppleScript alloc] initWithSource:[NSString stringWithFormat:@"tell application \"Terminal\" to do shell script \"%@\"", charlieImputSelf]];
[sendCharlieIm...
I have a search box, and a button. I want to slide the search box up and off screen to make a nice sliding effect for hiding/showing the search box when someone clicks the button. Is there a way to do this smoothly?
...
if i have the title of a song thats in my iPod Library. Can i play it in my application without opening iPod Library (using MPMediaPickerController)?
I can get the MPMediaItemPropertyPersistentID from the selected media item but how to play a sound for which i have MPMediaItemPropertyPersistentID?
Any code snippet?
...
I'm new to iPhone development, and been having a hard time trying to figure out why my table isn't working. It could be something with Core Data, I'm not sure. The viewDidLoad method works fine at the start, but when I try to scroll the table view, when a next row appears, I get the error:
NSInvalidArgumentException', reason: '-[NSCFS...
I am writing the middleware for a cocoa application, and am debating over how exactly to design callbacks for many long running processes.
When the UI will call a function which executes for a long time, it needs to provide a delegate to allow at least:
Report of Success (with return value)
Report of Failure (with error value)
Report ...
Can i play a song, i know its MPMediaItemPropertyPersistentID? How can i create MediaItem from MPMediaItemPropertyPersistentID?
...
hi all
i my iphone applicaion image in right of table cell are extracted from xml feed. Know i want to display them in fix size can any body help me out.
bellow is the code
int blogEntryIndex1 = [indexPath indexAtPosition: [indexPath length] -1];
imgstring=[[blogEntries objectAtIndex: blogEntryIndex1] objectForKey: @"i...
Hi,
I have this method and it's kind of really big so I can't include it in this post. It takes an array as parameter and tests its objects (NSStrings). Sometimes -but not always-, the method calls itself with an array containing one of those strings. If every test is passed, then the NSString is sent to another method which processes i...
HI guy's,
Can anyone please solve my problem, I am getting exception as:
malloc: *** error for object 0x754cab0: double free
*** set a breakpoint in malloc_error_break to debug
Program received signal: “SIGABRT”.
I dont know why it was generated only in Iphone sdk 4.0(device and simulator), but it was not generated in Iphone sdk...
I am trying to create an iPhone App that will talk to a WebDAV Server. I have no idea on this, any help, tips pointers will be appreciated.
Specifically in reference to :
1. How to upload a file to the WebDAV Server
2. How to download a file from the WebDAV server
3. How to retrieve / Add MetaData on the WebDAV server
4. How to enumerat...
Hi all,
I'm writing an iPad app, and I have the following screen situation:
MainAppWindow
MainView & MainViewController (Full Screen)
SubView1 & SubView1Controller (250x300) inside of MainView
DetailsView1 (Root View) <-- Managed by UINavigationController
DetailsView2 (Next View) <-- Managed by UINavigat...
hi all
i want to save nssarray object into string. code is
for (NSMutableDictionary *dictionary in blogEntries)
{
NSArray *titlearray = [dictionary objectForKey:@"title"];
// know i want to store the object in titlearray into string how shoud i
nsstring *STemp=? how should i write
NSRange titleResultsRange=[sTemp rang...
I have a UITableView. On my navbar I have an edit button. I want to be able to enable and disable it depending on certain conditions. For instance, when the user deletes the last of a certain type of row I want to gray out the Edit button as there are no more of these rows to delete.
What I do at the moment is check in
- (void)tableVi...
Seeking most efficient method for retrieving the GPU model in Objective-C or Carbon. I want to avoid using system_profiler because it is slow, but if it comes down to that I am willing to use it, but I wanna exhaust other options first.
...
I am trying to create a polyline (MKPolyline) overlay that updates periodically, to simulate the movement of an object. I can achieve this by removing the old overlay, updating the polyline and adding the overlay again, but this leads to flickering.
For a point annotation (MKPointAnnotation) you can simply change its coordinate, and the...