Search on Core data Table issue?

2009-10-21 Thread Damien Cooke
Hi All, Not sure if this is the right place (I am sure someone will let me know if it is not) I have a iPhone application that has a UITable view that is backed by core data. I want to perform a reducing search so that only the items starting with the characters entered into the search b

Re: [iPhone] Custom UIView like in iPhone Messages App

2009-11-08 Thread Damien Cooke
Tharindu, I did this by subclassing UITableView and overriding - (void) setBackgroundImage:(UIImage*)image This gives me a static background that the tableView will scroll over the top. Next you need to create a custom cell for your messages and pop them into the UItableView subclass in t

Re: Cocoa Sounds

2009-11-09 Thread Damien Cooke
Hi all, I may be way off but in my iPhone game I used SystemSoundID and AudioServicesCreateSystemSoundID I am not sure if that is helpful at all but it did not seem to have a delay but it does not support many formats either. So if you are happy to convert your format this may be an optio

Core data backed UITableView

2010-03-15 Thread Damien Cooke
Hi all, Here is the dumb question for the day. I have a coredata backed UITableView. I populate a NSFetchedResultsController and use that to source the rows and sections etc. All works well. That is until I go to delete an item from the table. - (void)tableView:(UITableView *)tableView commi

Problems linking json-framework with ios application

2011-05-17 Thread Damien Cooke
All, I am building a library to be used by other apps. I have included the json-framework in the library project and used the -ljson flag as directed. Now this all works fine, until my app uses one of the JSON categories that the library implements. if I add the json-framework to the app it wo

extending automatic core data entity classes

2009-12-27 Thread Damien Cooke
Hi All, I have a problem with core data. Probably caused by my lack of understanding. Below is the header file for the attribute I am bringing in from core data. I want to add a convenience method to this class indicated as - (ADDITIVE_WARNING_TYPE)returnAdditiveWarningByType below. The issu

Re: iPhone: load cell from XIB slows down tableview?

2010-01-04 Thread Damien Cooke
John, I had a similar issue. For me the problem turned out to be that the reusableId was not being set as it was imported from the nib. Thus the call dequeue one was always retuning nil. I solved this by building the cell by hand and calling the correct init method so the reusableid was

NSURLConnection POST issues

2010-01-09 Thread Damien Cooke
Hi All, I have a solution for this problem that I am not at all happy with. I have appended all of my html form variables into a single variable using ||| as the field separators. This is a rubbish solution. I am looking for a more elegant solution that is less like a dodgy hack. Here is the

Re: NSURLConnection POST issues

2010-01-09 Thread Damien Cooke
Thanks Jason, I knew it would be simple. Thank you so much. Regards Damien On 10/01/2010, at 2:35 PM, Jason Foreman wrote: > > On Jan 9, 2010, at 9:31 PM, Damien Cooke wrote: > >> here is my code to send this data >> > >> [appendedData appendData:[[

Youtube video upload ussue

2010-02-12 Thread Damien Cooke
Hi All, I have got a very frustrating problem. I am trying to upload video to youtube using GData APIs and am having significant issues. I am sure one of you will have done this previously and I hope you can assist me. I have copied the cocoa sample and just put it in my code to get something

some advice on asynchronous control please

2010-02-19 Thread Damien Cooke
Hi All, I have a situation where I am using a 3rd party library to manage content on their service. When I delete an entry the method requires a call back all good. Now I need to wait for that call back to be called to know if it was successful or not. In the call back I can set a boolean to i

core data issues iOS 4.0.2

2010-08-30 Thread Damien Cooke
Hi all, I have been deleting objects with code similar to this. NSManagedObjectContext *context = [[self fetchedResultsController] managedObjectContext]; [context deleteObject:videoEntity]; [managedObjectContext processPendingChanges]; //commit th

Re: core data issues iOS 4.0.2

2010-08-31 Thread Damien Cooke
an you tell us > whether the second cause for this error (not propagating the deletion into > relationships) fits your case? > > — F > > > > On 30 Aug 2010, at 4:40 PM, Damien Cooke wrote: > >> I have been deleting objects with code similar to this

TableView deselection issue

2010-12-10 Thread Damien Cooke
Hi All, I have a perplexing yet, probably, very simple problem. I have a tableView that when a cell is selected I pop in a different cell background (just a little pizzazz) only problem is that it is all backfiring on me as my willSelectRowAtIndexPath gets called fine and my funky image gets p

AVAssetWriterInputPixelBufferAdaptor on IOS attempting to write images to a video

2012-04-12 Thread Damien Cooke
HI All, I am attempting to write out an image as a movie well, it will be an array of images but to start with I can't even get one in there. Any help diagnosing my problem would be greatly appreciated. Here is what I am doing: //here is the image NSString *path = [NSString stringWithFormat:

Auto resize due to personal hotspot blue bar

2012-10-21 Thread Damien Cooke
Hi all, I have a perplexing issue where I think I know the answer but can not make it work I have a custom UINavigation controller with a custom titlebar This is achieved in the UINavigationController subclass in the - (void)viewDidLoad UIImageView *imageView = [[UIImageView alloc] initWithF

Keychain issues with public key on iOS

2013-02-08 Thread Damien Cooke
All, I am trying to put a public key into the ios keychain so I can get a SecKeyRef to use to verify a signature. Now the key loos like this: -BEGIN PUBLIC KEY- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqE28o7Rhg36oaTGpHgIY n1OcRpwFaznSUriAxmvLymRvoVllB/Rbbd7Ap2ALg4hr8i+lZU9bBND9YYbJbp

Re: Keychain issues with public key on iOS

2013-02-10 Thread Damien Cooke
t 1:31 PM, Damien Cooke wrote: > >> I am trying to put a public key into the ios keychain so I can get a >> SecKeyRef to use to verify a signature. > > Oh dear. Any time I have to deal with the iOS keychain APIs I get either > enraged or sick to my stomach or both. S

Unicode chars in string

2013-09-09 Thread Damien Cooke
Hi all, I am pulling my hair out here trying to replace the unicode (r) symbol with \\00ea in a string. Is there a way of doing this as the NSString is a unicode String so it is interpreting it. As convenient that might be to most people it is killing me here. Any suggestions? Damien

NSTableView and NSImageView issues

2008-05-20 Thread Damien Cooke
I am a newbe to Cocoa so please be gentle, I have a NSTableView that displays a list of books when clicked I capture the index and determine which book has been selected, I have the cover images in a database. To the right of the NSTableView I have an NSImageView, how do I tell the NSImage

Hiding NSImageView

2008-06-01 Thread Damien Cooke
Hi all, I need to be able to display either one or two images on the screen and the choice is made by the user via a button. So I have built my interface with three ImageWells one large ImageWell and also two 1/2 the size I want to be able to turn them on and off with a button but I can f

Re: Hiding NSImageView

2008-06-01 Thread Damien Cooke
ageView to change the images being displayed. Mark Munz On 6/1/08, Hamish Allan <[EMAIL PROTECTED]> wrote: On Sun, Jun 1, 2008 at 11:07 PM, Damien Cooke <[EMAIL PROTECTED]> wrote: finding any other way of hiding them is eluding me. NSImageView derives from NSView, which has a &quo

Linking dependancies

2008-06-05 Thread Damien Cooke
Hi, Here is a dumb question for you :) It is actually more of an XCode question so feel free to let me know if this is the wrong place. I have built a project it has 2 targets one an executable and one a dylib. They both compile fine. I need to link the executable against the dylib but

SplashScreen issues

2008-06-20 Thread Damien Cooke
Hi all, When creating a splash screen what condition do you use to decide when to close your splash screen? Is there some obvious event that is triggered that I can use? do I use [window orderOut:self] to close it? Or is there a better way? Thanks and Regards Damien __

Re: SplashScreen issues

2008-06-21 Thread Damien Cooke
: On 20 Jun '08, at 4:13 PM, Damien Cooke wrote: When creating a splash screen what condition do you use to decide when to close your splash screen? Is there some obvious event that is triggered that I can use? Your app delegate's -applicationDidFinishLaunching: method is pr

NSArchiver question?

2008-06-26 Thread Damien Cooke
I am getting the following error from this line NSData *data = [NSArchiver archivedDataWithRootObject:viewItem]; -[DCOViewItem encodeWithCoder:]: unrecognized selector sent to instance 0x17fa00 do I need to override this method below for my class DCOViewItem to use the NSArchiver class? (v

Detecting a double click outside the table

2008-07-01 Thread Damien Cooke
Hi all, I have a window that has a custom NSTableView and an image cell. I have used this [tableView setDoubleAction: @selector(doubleAction:)]; to set the double action. The issue is that I have a method in the tableview that the window controller can use to determine if a double click h

NSSliderCell subclass?

2008-07-14 Thread Damien Cooke
Hi All, I want to be able to determine the value of the NSSlider whilst sliding it. I am guessing I will have to subclass NSSliderCell but if anyone has an example or some direction as to which methods I need to override I would really appreciate it. Regards Damien "We act as though c

Re: NSSliderCell subclass?

2008-07-14 Thread Damien Cooke
value change while sliding "live". Did you mean something else? Graham On 14 Jul 2008, at 9:02 pm, Damien Cooke wrote: Hi All, I want to be able to determine the value of the NSSlider whilst sliding it. I am guessing I will have to subclass NSSliderCell but if anyone has an

Mouse events in NSTextFieldCell

2008-07-14 Thread Damien Cooke
Hi all, I have an NSTableView that lists names of images. I want to pop up a thumbnail image as I roll the mouse over the cells. I thought I could do this by sub-classing the NSTextFieldCell. However I am stumped as to how to get it to acknowledge mouse events obviously I have not enab

Re: Returning exactly what has been promised

2008-07-22 Thread Damien Cooke
You could return like this return [myWorkingMutableString copy]; This makes a immutable copy returning an NSString. Regards Damien On 23/07/2008, at 2:24 PM, Steve Cronin wrote: Folks; I find if I have a method which returns an NSString for example, that often, in the interior of that met

NSXML assistance please

2008-05-04 Thread Damien Cooke
I am porting a tool from Java to Cocoa. I am reasonably new to XML and I am having some difficulties. my Items in the XML look like this: Region="South Australia" MediaType="Photo"> multi-laned non-water-based I can easily get the keywords out but have found no wa

Enum advice please

2009-01-06 Thread Damien Cooke
Hi all, I have the following code: typedef enum _DCDBTypes { DCOItemType = 0, DCOCategoryType = 1, DCORegionType = 2 }DCDBTypes; It gives me this error message. error: expected specifier-qualifier-list before 'typedef' If I try to use it like this - (void)setItemType

Enum advice please (resend not sure if it was delivered ?)

2009-01-06 Thread Damien Cooke
Hi all, I have the following code: typedef enum _DCDBTypes { DCOItemType = 0, DCOCategoryType = 1, DCORegionType = 2 }DCDBTypes; It gives me this error message. error: expected specifier-qualifier-list before 'typedef' If I try to use it like this - (void)setItemType

Re: Enum advice please (resend not sure if it was delivered ?)

2009-01-06 Thread Damien Cooke
simple C program and it compiled no problem. Is it possible that the error is in the previous declaration to the typedef? Bear in mind it might be a problem in a header file. On 5 Jan 2009, at 10:49, Damien Cooke wrote: Hi all, I have the following code: typedef enum _DCDBTypes

Transparency with PNG on NSImageView

2009-02-05 Thread Damien Cooke
Hi All, I have what is probably a stupid problem. In my window I have a background NSImageView and I want to pop another much smaller one on top. The one I am putting on top is a png with transparencies. When I do this I get a rectangular image over my background but what I want to see i

Re: Transparency with PNG on NSImageView

2009-02-05 Thread Damien Cooke
I create a new NSImageView and load it with the image then display the NSImageView Damien On 06/02/2009, at 9:13 AM, Randall Meadows wrote: On Feb 5, 2009, at 3:28 PM, Damien Cooke wrote: Hi All, I have what is probably a stupid problem. In my window I have a background NSImageView and

Re: Transparency with PNG on NSImageView

2009-02-05 Thread Damien Cooke
only difference I think is UIGraphicsGetCurrentContext) On Feb 5, 2009, at 3:28 PM, Damien Cooke wrote: Hi All, I have what is probably a stupid problem. In my window I have a background NSImageView and I want to pop another much smaller one on top. The one I am putting on top is a png

Programatically selecting items in a NSTableView

2009-02-15 Thread Damien Cooke
Hi All, I have a NSTableView in a dialogue box (NSPanel subclass) I am passing in a value that I want to be the item that is selected when the dialogue opens. I fully populate the Datasource Array then I do this //select the item passed in for(unsigned arrayCounter = 0; arrayCounter < [diaM

Re: Programatically selecting items in a NSTableView

2009-02-16 Thread Damien Cooke
Thanks Nick, I moved all of my tableview population code to AwakeFromNib and it is all working fine. Thanks so much. Regards Damien On 16/02/2009, at 1:18 PM, Nick Zitzmann wrote: On Feb 15, 2009, at 2:27 PM, Damien Cooke wrote: This does not work and I was wondering if 1: can I

Re: Cocoa Support for Mail

2009-02-25 Thread Damien Cooke
All, I need to send email from my app. I have chosen EDMessage and added the frameworks to my project but it fails with error 5 can not find the EDCommon image. So I am told this is because the frameworks are designed to be embedded within the project. This is what I need some help with.

Preventing a user from moving a window

2008-11-25 Thread Damien Cooke
Hi all, I have an arrangement of windows that I do not want the user to move. What is the best way of doing this. There are several ways I thought of but they are not very elegant. Can someone point me in the right direction? Regards Damien If you can't be kind, at least have the dec

Child Window issues

2008-12-05 Thread Damien Cooke
Hi all, In my application I have a main window with a few controls and 4 child windows each contain an image. When I maximise one of the child windows to full screen (depending on which one) one or more of the other three stay in front. This is clearly a window order issue. Is there a w

Re: Child Window issues

2008-12-07 Thread Damien Cooke
Hi All I resolved this by using: [window setLevel: NSWindowLevel]; I hope this helps someone else out there. Damien On 06/12/2008, at 9:05 AM, Damien Cooke wrote: Hi all, In my application I have a main window with a few controls and 4 child windows each contain an image. When I

Re: Creating a window when pressing a button

2008-12-09 Thread Damien Cooke
Jushin, What I have done in the past with these sort of issues is either load the nib in the button pushed action or depending on how complicated your secondary window is, you could programatically create it like this. myWindow = [[NSWindow alloc] initWithContentRect:myRect styleMask:NSTi

Re: Creating a window when pressing a button

2008-12-09 Thread Damien Cooke
[myNewWindow makeKeyAndOrderFront:nil]; } On 10/12/2008, at 12:16 PM, Damien Cooke wrote: Jushin, What I have done in the past with these sort of issues is either load the nib in the button pushed action or depending on how complicated your secondary window is, you could programatically create it l

Video bit rate

2013-12-09 Thread Damien Cooke
Hi All, I am taking video on in my iPhone app at 1280x720 this turns out at about 40Mb/min What I want is to drop the bit rate not the size using AVAssetWriter/AVAssetReader, is this possible or even the right way of doing this? I am able to get what I want by dropping the bit rate in an exter

Application size growing

2014-02-22 Thread Damien Cooke
Hi All, I write a video app for the auto industry basically, you shoot several short “segments” of your car and combine them then add a tune in the background. I take them in 1280X720 and then resize them and add the audio using AVFoundation. I store all the files I save into Documents/video a

Re: Application size growing

2014-03-02 Thread Damien Cooke
23 Feb, 2014, at 7:19 am, Jens Alfke wrote: > >> >> On Feb 22, 2014, at 2:07 PM, Damien Cooke wrote: >> >>> The problem is the app is gaining about 200Mb after each movie and the only >>> cure is to delete the app. Where is this all going if I write al

AVFoundation joining Audio files

2014-06-01 Thread Damien Cooke
Hi All, In our specific market video app we take videos and merge them together and they are used for advertising. We can add music or a voice over to the video before publishing. Now we have a way of adding a intro to the video that was previously kept in the photo roll. The issue is if we h