Re: How can I not block hotkey from other apps

2009-11-24 Thread Andrew Farmer
On 23 Nov 2009, at 07:17, Symadept wrote: > I managed to get my app support for registering hotkeys and using it. But > unfortunately if I register Cmd P as hot key in my app, no one in the system > can use this hotkey to print unless I deregister it. How can I make it not > block others. If you d

Problem with QTMovie

2009-11-24 Thread Symadept
Hi, I am playing one video, .mov format in QTMovieView which takes QTMovie and I found out after completion of the Movie my headset's sound goes completely off. I cant hear anything in that anymore unless I unplug and plug it again. I tested the same with other movie samples, it works fine. What c

How to get notified pause when QTMovieView when clicked

2009-11-24 Thread Symadept
Hi, I figured out that when I click on the QTMovieView, it pauses and double clicks it plays again. How to get notified whenever the movie is paused or played by click and double click on the QTMovieView. I tried all the possibilities like subclassing QTMovieView and overriding the following meth

Re: [iphone] UITableViewCell set cell attributes based on indexPath.row number

2009-11-24 Thread Philip Vallone
Thanks Brian. That did the trick. Regards, Phil On Nov 23, 2009, at 11:55 PM, Brian Slick wrote: > The stuff outside of the if (cell == nil) block will be performed on each > cell, whether new or reused. You need to assume that the current display of > the cell is "wrong", and do what is ne

Re: How to get notified pause when QTMovieView when clicked

2009-11-24 Thread Jean-Daniel Dupas
Le 24 nov. 2009 à 11:03, Symadept a écrit : > Hi, > > I figured out that when I click on the QTMovieView, it pauses and double > clicks it plays again. How to get notified whenever the movie is paused or > played by click and double click on the QTMovieView. > > I tried all the possibilities lik

Re: NSTableView in NSSplitView

2009-11-24 Thread Peter Hudson
Try the following:- Get rid of the current split view ( Unembed objects from the menu ) Drag an NSBox into your window - set it to have no border or title as appropriate and set it so that it can change size horizontally and vertically. Drop your table view and button onto this box - arrange

Re: How to get notified pause when QTMovieView when clicked

2009-11-24 Thread Symadept
Hi, What is the notification string for Pause and Play of QTMovie? I found out one for movieEnd. Any similar one for this. Regards Mustafa On Tue, Nov 24, 2009 at 6:19 PM, Jean-Daniel Dupas wrote: > Le 24 nov. 2009 à 11:03, Symadept a écrit : > > > Hi, > > > > I figured out that when I click on

Re: How to get notified pause when QTMovieView when clicked

2009-11-24 Thread Symadept
Hi Jean, I fixed it using your suggestion. Thanks alot. Regards Mustafa On Tue, Nov 24, 2009 at 6:57 PM, Symadept wrote: > Hi, > What is the notification string for Pause and Play of QTMovie? > > I found out one for movieEnd. Any similar one for this. > > Regards > Mustafa > > > On Tue, Nov 2

Re: Problem with NSTableView in NSSplitView

2009-11-24 Thread Peter Zegelin
Martin, I have had the same problem and managed to fix it, but bear in mind I am a beginner so my solution may not be the best or even correct. I believe the problem is caused by the tableview being effectively 'turned inside out' if it is inset and the splitview is closed. If there is

Re: Problem with QTMovie

2009-11-24 Thread Symadept
Hi, Any Idea why is this happening. I tried to play file into default then there is no issue. And when I tried to play other sample videos then it is fine. Regards Mustafa On Tue, Nov 24, 2009 at 6:00 PM, Symadept wrote: > Hi, > > I am playing one video, .mov format in QTMovieView which takes

Displaying a window within NSPreferencePane

2009-11-24 Thread Christian Ziegler
Hi all! Im working on a preference pane and I'd like to display a windows showing log-messages of a daemon. Problem is, when I load the nib which contains the window resides, it displays the window completely unformatted (No title, no subviews, nothing). Has anyone got a clue what the re

Re: Displaying a window within NSPreferencePane

2009-11-24 Thread Christian Ziegler
Nevermind guys, there must have been something wrong with my nib file. I created a new one and it works. On 24.11.2009, at 13:55, Christian Ziegler wrote: > Hi all! > > Im working on a preference pane and I'd like to display a windows showing > log-messages of a daemon. Problem is, when I loa

Re: Best approach to write an uninstaller for osx

2009-11-24 Thread Parimal Das
hello again >From what i understood till now, i have written some Applescript (my first) to do the uninstall. My approach here is- 1. I have two Application Bundles (created from Script Editor)- Uninstall.app and DeleteAll.app 2. Delete.app resides inside the "Resources" of Uninstall.app. 3. When

Re: Core Data: Specifying latest .mom resource. Was: NSMigratePersistentStoresAutomaticallyOption...

2009-11-24 Thread glenn andreas
On Nov 24, 2009, at 12:55 AM, Jerry Krinock wrote: > Sorry, I'm back with this problem. Although the code I posted worked > perfectly in a Debug build, when I tested a Release build, the invocation of > -mergedModelFromBundles: raised this exception : > > Can't merge models with two differe

Re: Best approach to write an uninstaller for osx

2009-11-24 Thread Jens Alfke
On Nov 24, 2009, at 6:30 AM, Parimal Das wrote: > 4. This script copies DeleteAll.app to /private/tmp/ AND then runs > DeleteAll.app from Temp location. Why do you need two different apps? Just have Uninstall.app delete itself when it finishes. > do shell script "sudo cp -R '" & ourPath

Cant Access Properties of NSManagedObject from a NSArrayController...

2009-11-24 Thread Gustavo Pizano
Hello all. Here is what I have: an NSArryaController for my Entity User. and an NSArrayController for my Entity Invoice. so this is what Im doing when saving an invoice for a selected user. -(void)saveInvoiceForSender:(id)sender withParent:(UserListViewController *)parent{ NSLog(@"Sav

Re: Cant Access Properties of NSManagedObject from a NSArrayController...

2009-11-24 Thread Gustavo Pizano
MMM I think I may know whats wrong.. the managedObjectContext contains only the newly insterted invoice but nothing about the user which comes from the NSArrayController. So this makes me think that the ArrayController fetches the Entities but don't place them into the managedObjectContext?,...

Creating a NSEvent with NSEventTypeMagnify

2009-11-24 Thread Andreas Hegenberg
Hello everybody, I hope this is the correct mailinglist for my question. I want to create a NSEvent with the NSEventTypeMagnify and a specific magnification. The NSEventTypeMagnify was introduced in 10.6. Unfortunately I don't really know how to do it. I fiddled with otherEventWithType but can'

Re: Cant Access Properties of NSManagedObject from a NSArrayController...

2009-11-24 Thread Laurent Demaret
Gustavo Pizano wrote: > .. > unrecognized selector sent to instance 0x100266580.. > any clue what Im doing wrong? You used a unrecognized selector for object 0x100266580 ? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post adm

Re: Cant Access Properties of NSManagedObject from a NSArrayController...

2009-11-24 Thread Quincey Morris
On Nov 24, 2009, at 11:42, Gustavo Pizano wrote: > Now the interesting part, 14, I did jsut a test to see what I could get, and > eventually the way it is, I get the value of @"ico", BUT, If I try to do the > follwoing: NSLog(@"%@",[(User *)[[parent _userListArrayController] selection] > ico])

Re: Cant Access Properties of NSManagedObject from a NSArrayController...

2009-11-24 Thread Gustavo Pizano
Thats what its telling me the console... when logging... ... :( On Nov 24, 2009, at 8:57 PM, Laurent Demaret wrote: > > Gustavo Pizano wrote: >> .. >> unrecognized selector sent to instance 0x100266580.. >> any clue what Im doing wrong? > > > You used a unrecognized selector for object 0x1

Re: Cant Access Properties of NSManagedObject from a NSArrayController...

2009-11-24 Thread Gustavo Pizano
A ... ok... Thanks for the help Quincey. G On Nov 24, 2009, at 8:58 PM, Quincey Morris wrote: > On Nov 24, 2009, at 11:42, Gustavo Pizano wrote: > >> Now the interesting part, 14, I did jsut a test to see what I could get, >> and eventually the way it is, I get the value of @"ico", BUT,

Re: Core Data: Specifying latest .mom resource. Was: NSMigratePersistentStoresAutomaticallyOption...

2009-11-24 Thread Jerry Krinock
On 2009 Nov 24, at 07:17, glenn andreas wrote: > Did you do a clean all before your build? If a file is removed/renamed in > Xcode, the old file will continue to exist in the build Yes, thanks for reminding me of that, Glenn. I did not Clean All, but in the last half hour I did. This starte

Re: tableView:setObjectValue:forTableColumn:row: not called when button pressed

2009-11-24 Thread Scott Ribe
Thanks for the in-depth info. > Maybe I missed something earlier in this thread, but I don't see why using the > NSEditor protocol isn't a better solution. Well, I'm not using bindings, and I am using NSWindowController which does not implement the NSEditor protocol. > This is a superior solutio

Re: Cant Access Properties of NSManagedObject from a NSArrayController...

2009-11-24 Thread Laurent Demaret
Gustavo Pizano wrote: > Thats what its telling me the console... when logging... It means that the object you sent the message could not handle it. Just put a breakpoint at your NSLog statement and type "po" followed by the id of the faulting object so you know who you are sending your action t

Re: Cant Access Properties of NSManagedObject from a NSArrayController...

2009-11-24 Thread Gustavo Pizano
Laurent hi. Yes I guess this goes into my experience book.. I needed to use not the proxy but the selected element. .. grrr.. I guess I got confuseed on how I was doing it with bindings in IB. Thanks for all guys! G. :D On Nov 24, 2009, at 9:46 PM, Laurent Demaret wrote: > Gustavo Pizano w

Multiple nibs for this application?

2009-11-24 Thread David Hirsch
I am starting to write a course-instructor-room scheduling application with a number of separate lists (e.g., courses, rooms, instructors), each of which will be fairly short, but might have quite a few fields. The main application window will be trivial - a set of buttons, each of which o

Core Data: Merge Conflicts between *different* objects, other paradoxes

2009-11-24 Thread Jerry Krinock
In a Core Data document-based app, I open an old document which must be migrated to the current version. Automatic migration apparently succeeds -- the document opens. However, when I make a change and Save, it fails with "Could not merge changes". Since this problem seems to involve merging,

Re: Multiple nibs for this application?

2009-11-24 Thread Nick Zitzmann
On Nov 24, 2009, at 2:44 PM, David Hirsch wrote: > My question: given this setup, is it worth the trouble to have separate nibs > for each of the list-editing windows? I'm leaning towards having one single > nib, but perhaps that is unwise. I'd advise making separate nibs for each window, and

Inactivity Timer

2009-11-24 Thread Kevin
I needed to implement an inactivity timer in my Cocoa App and did so my subclassing NSApplication and overriding sendEvent: to start and stop a timer. Although it works most of the time, every once in a while my timer gets fired as I'm typing text into a text field or interacting with some

Need some pointers for professional printing options

2009-11-24 Thread Graham Cox
Our app currently makes use of built-in PDF generation for export and print, essentially by calling [NSView dataWithPDFInsideRect:]. However, users are asking for more professional print features such as converting to CMYK colour spaces, resampling of images, control over embedding fonts, knock

How do you use an Application ID for an iPhone application

2009-11-24 Thread Ian Piper
Hi, I am a bit baffled by how I am supposed to use an Application ID for an iPhone app. I have registered on the portal and have an Application ID which I can see within Xcode in my provisioning profile. It is a 10-character string followed by ".*" >From the Developer documents it appears that

Re: Inactivity Timer

2009-11-24 Thread Dave Keck
Not sure about the typing scenario, but scrolling is implemented using -nextEventMatchingMask:untilDate:inMode:dequeue: (which runs the run loop recursively in the NSEventTrackingRunLoopMode mode) which bypasses NSApplication's -sendEvent:. Off the top of my head, it seems overriding -nextEventMat

Re: Inactivity Timer

2009-11-24 Thread Jerry Krinock
Your code looks OK to me. Maybe -sendEvent is not always being invoked. I would temporarily implement -sendEvent like this: - (void)sendEvent:(NSEvent *)event { NSLog(@"Gotcha") ; [super sendEvent:event]; } Type such as to reproduce the problem and see if it logs.___

Re: Inactivity Timer

2009-11-24 Thread Rob Keniger
On 25/11/2009, at 8:37 AM, Kevin wrote: > I needed to implement an inactivity timer in my Cocoa App and did so my > subclassing NSApplication and overriding sendEvent: to start and stop a > timer. Although it works most of the time, every once in a while my timer > gets fired as I'm typing tex

int* array going astray

2009-11-24 Thread James Maxwell
I have a couple of int* arrays I'm using as instance variables - they're declared in my @interface section, and inited using malloc when I init the object (and free()'d in the dealloc). I can set them, using standard array notation (i.e., number[i] = 7) while I'm in a given method, but the value

Re: int* array going astray

2009-11-24 Thread Graham Cox
On 25/11/2009, at 11:20 AM, James Maxwell wrote: > I have a couple of int* arrays I'm using as instance variables - they're > declared in my @interface section, and inited using malloc when I init the > object (and free()'d in the dealloc). I can set them, using standard array > notation (i.e.

Re: int* array going astray

2009-11-24 Thread Michael Babin
On Nov 24, 2009, at 6:20 PM, James Maxwell wrote: > I have a couple of int* arrays I'm using as instance variables - they're > declared in my @interface section, and inited using malloc when I init the > object (and free()'d in the dealloc). I can set them, using standard array > notation (i.e.

Cocoa Bindings and NSUserDefaults

2009-11-24 Thread Ben Haller
Hi all! I've just implemented a trivial preferences panel using Cocoa Bindings; it's my first use of bindings (have I mentioned I've been living in a cave for the past five years? :->), so I'm hoping the list is willing to take a quick look at my code and give me a critique. I've got a

Re: int* array going astray

2009-11-24 Thread James Maxwell
Hey Folks, Thanks for the responses. I'm doing some testing to specifically isolate the instance that's giving me the problem, so "self" should definitely be the right one. There's no persistence stuff written at all yet, so it can't be initWithCoder. I'm using a totally vanilla synthesized acc

Re: Cocoa Bindings and NSUserDefaults

2009-11-24 Thread Rob Keniger
On 25/11/2009, at 12:17 PM, Ben Haller wrote: > - There's a little bit of duplication of information between the nib and the > code. The tags on the radio button matrix's cells have to match the values > in the enumeration, for one thing. Even more annoyingly, the strings for the > defaults

Core Data: Doc Migrates, Opens, but wants to migrate back to ~ on Save!

2009-11-24 Thread Jerry Krinock
To make a long story short, let's start over... In a Core Data document-based app, I open an old document which must be migrated to the current version. Leopard Automatic migration apparently succeeds. The old file is renamed with a tilde, and the document opens. However, when I edit and Sav

Re: How do you use an Application ID for an iPhone application

2009-11-24 Thread Matthew Mashyna
It's simple once you get it to work the first time. If you made your provision for the domain com.skeyn then in the properties tab your identifier should be com.skeyn.${PRODUCT_NAME:rfc1034identifier} The last part of this is a macro that xcode will use to figure out what it needs to prop

Re: int* array going astray

2009-11-24 Thread James Maxwell
how do you spell total frustration and stupidity? how about writing: if(_state[i] = 0) when you really mean: if(_state[i] == 0) how many hours did I waste trying to find that?. ugh Certainly a simple enough way to make sure a vector isn't retained! (funny that I didn't get a warning, a

IKImageBrowserView selection notification

2009-11-24 Thread Charles Burnstagger
How do I detect when the selection changes in a IKImageBrowserView? I didn't see anything in the docs on that. Thanks, Chuck ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to t

different width in fastenumeration

2009-11-24 Thread Hans van der Meer
Doing NSDictionary *objects enumerate over its keys thus: for ( id key in [objects allKeys] ) {} According to the documentation allKeys returns a NSArray and NSArray's conform to NSFastEnumeration. However on building this code generates the following warning: Passing argument 3 of 'count

Re: int* array going astray

2009-11-24 Thread Luke the Hiesterman
This is why some people write if (0 == _state[i]). A mistake there will definitely generate a compiler error. Luke On Nov 24, 2009, at 8:35 PM, James Maxwell wrote: how do you spell total frustration and stupidity? how about writing: if(_state[i] = 0) when you really mean: if(_state[i] ==

Re: int* array going astray

2009-11-24 Thread James Maxwell
oh, thanks! I didn't know that "people" did that. But now I do! Certainly makes sense. cheers, J. On 2009-11-24, at 8:39 PM, Luke the Hiesterman wrote: > This is why some people write if (0 == _state[i]). A mistake there will > definitely generate a compiler error. > > Luke > > On Nov 24,

Re: int* array going astray

2009-11-24 Thread Graham Cox
On 25/11/2009, at 3:35 PM, James Maxwell wrote: > (funny that I didn't get a warning, actually... Is there any build setting > that will protect me from a similar bought of blindness in the future?) The warning you want is 'possible unwanted assignment', and I think it comes with the -Wall fl

Re: IKImageBrowserView selection notification

2009-11-24 Thread Nick Zitzmann
On Nov 24, 2009, at 1:21 AM, Charles Burnstagger wrote: > How do I detect when the selection changes in a IKImageBrowserView? I didn't > see anything in the docs on that.

Re: different width in fastenumeration

2009-11-24 Thread Jens Alfke
On Nov 24, 2009, at 3:47 AM, Hans van der Meer wrote: > Doing NSDictionary *objects enumerate over its keys thus: > for ( id key in [objects allKeys] ) {} > According to the documentation allKeys returns a NSArray and NSArray's > conform to NSFastEnumeration. However on building this code gener

Re: int* array going astray

2009-11-24 Thread Jens Alfke
On Nov 24, 2009, at 8:56 PM, Graham Cox wrote: > The warning you want is 'possible unwanted assignment', and I think it comes > with the -Wall flag. Yup. I vehemently assert that all projects should be built with -Wall and -Werror. It will save you so much time and frustration. —Jens ___

Re: int* array going astray

2009-11-24 Thread James Maxwell
Thanks again, folks. Will definitely enable those checks. cheers, J. On 2009-11-24, at 9:44 PM, Jens Alfke wrote: > > On Nov 24, 2009, at 8:56 PM, Graham Cox wrote: > >> The warning you want is 'possible unwanted assignment', and I think it comes >> with the -Wall flag. > > Yup. I vehement

URLWithString fails to fails with bad string

2009-11-24 Thread lorenzo7620
This returns a non-nil value: NSURL * url = [NSURL URLWithString:@"sdsds"]; The docs say this should fail. RFC 1758 looks for the string to begin with a scheme, eg http: I would expect a malforrned string, ie, htt: to work, since URLWithString doesn't distinguish between "htt:" and "http:", b

Re: URLWithString fails to fails with bad string

2009-11-24 Thread Graham Cox
On 25/11/2009, at 5:14 PM, lorenzo7...@gmail.com wrote: > This returns a non-nil value: > NSURL * url = [NSURL URLWithString:@"sdsds"]; > > The docs say this should fail. RFC 1758 looks for the string to begin with a > scheme, eg http: > I would expect a malforrned string, ie, htt: to work, sin

Re: How do you use an Application ID for an iPhone application

2009-11-24 Thread Ian Piper
Matthew, Thanks - that seems a bit clearer. I'm still not clear though what, if any, use I need to make of the Application ID. From your reply it appears that I don't use it as a prefix in the bundle identifier after all. Is that right? Ian. On 25 Nov 2009, at 04:18, Matthew Mashyna wrote: