Re: instance fails in its own class

2010-11-06 Thread Greg Guerin
N!K wrote: However, exactly the same statement fails when pasted into -init of Class.m. Build yields "warnings Class may not respond to -new." This message suggests you're calling an instance method, not a class method, or that's the way the compiler is interpreting it. Post your actu

instance fails in its own class

2010-11-06 Thread N!K
This should be an elementary step, just like in all the examples I've seen, but it doesn't work for me. I'm trying to create an instance of a class, which I can use to access -methods. Class *obj = [Class new]; works OK in ProjectAppDelegate.m. However, exactly the same statement fails when

Re: Understanding the Run loop idea and the updating of controls during long operations

2010-11-06 Thread Ken Thomases
On Nov 6, 2010, at 9:19 PM, eveningnick eveningnick wrote: > I am trying to understand how does Run loop work. > Basically the problem i need to solve is like the following: > I have a Cocoa application, which is a little "adhoc" - for better > understanding of the "internals" of my app i do not

Re: bouncing an NSScrollView like UIScrollView

2010-11-06 Thread Laurent Daudelin
On Nov 6, 2010, at 17:58, Alexander Cohen wrote: > On Nov 6, 2010, at 7:02 PM, Kyle Sluder wrote: > >> On Nov 6, 2010, at 3:41 PM, Alexander Cohen wrote: >> >>> Has anyone tried getting the NSScrollView to bounce around when it hits the >>> content edges just like the UIScrollView does? Is the

Understanding the Run loop idea and the updating of controls during long operations

2010-11-06 Thread eveningnick eveningnick
Hello I am trying to understand how does Run loop work. Here is my story (i am sorry, it is a little long, but to avoid questions "why do you need that" and others i thought better to write it down here). I also read the CFRunLoop documentation, and event processing guide in Cocoa, but I couldn't p

Re: CAShapeLayer curved path animation

2010-11-06 Thread Gideon King
Sorry, I must have not been clear - these are not before and after curve definitions. They are two approaches I tried. First I was using the curve to approach, and when that wasn't working nicely, I tried the quad curve. On 07/11/2010, at 11:11 AM, David Duncan wrote: > On Nov 6, 2010, at 4:41

Re: Interrupt copyItemAtPath

2010-11-06 Thread Ken Thomases
On Nov 6, 2010, at 5:27 PM, gMail.com wrote: > I copy a 14GB file with > Since the copy could take several minutes, I would grant the user the > opportunity to interrupt the copy pressing a given button. > Or should I use the latest methods from FSCopyObject.c ? FSCopyObject.c? From Apple's sa

Re: Interrupt copyItemAtPath

2010-11-06 Thread James Bucanek
gMail.com wrote (Saturday, November 6, 2010 3:27 PM +0100): I copy a 14GB file with - (BOOL)copyItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath error:(NSError **)error Since the copy could take several minutes, I would grant the user the opportunity t

NSOobject as ViewController and MVC architecture

2010-11-06 Thread Sivakumar Kandappan Sivakumar
Hello Everyone I`m new to iPad Programming. I found in the ViewController programming guide that, there should be one to one correspondence between the view controller and the screen displayed and also says that, if you have to manage different veiws on the same screen I have to use NSO object a

Re: CAShapeLayer curved path animation

2010-11-06 Thread David Duncan
On Nov 6, 2010, at 4:41 PM, Gideon King wrote: > I'm using a CAShapeLayer, and the animation of the shape of the curved path I > am using is doing really strange things (It seems to work fine on straight > lines). I have tried: > > CGPathMoveToPoint(tempPath, NULL, startPoint.x, startPoin

Re: bouncing an NSScrollView like UIScrollView

2010-11-06 Thread Alexander Cohen
On Nov 6, 2010, at 7:02 PM, Kyle Sluder wrote: > On Nov 6, 2010, at 3:41 PM, Alexander Cohen wrote: > >> Has anyone tried getting the NSScrollView to bounce around when it hits the >> content edges just like the UIScrollView does? Is there any open source code >> out there that might do this

Re: Over-released NSMenuItem on using "Open Recent" via Help menu search

2010-11-06 Thread Sean McBride
On Sat, 6 Nov 2010 15:14:17 -0700, Kyle Sluder said: >herring. If something else was allocated at that address but >prematurely freed, that could be the thing that the offending code is >trying to send the -_bindingAdaptor message. Setting NSAutoreleaseFreedObjectCheckEnabled=YES and NSEnableAuto

CAShapeLayer curved path animation

2010-11-06 Thread Gideon King
I'm using a CAShapeLayer, and the animation of the shape of the curved path I am using is doing really strange things (It seems to work fine on straight lines). I have tried: CGPathMoveToPoint(tempPath, NULL, startPoint.x, startPoint.y); CGPathAddQuadCurveToPoint(tempPath, NULL,

Re: Over-released NSMenuItem on using "Open Recent" via Help menu search

2010-11-06 Thread Keith Blount
Thanks again for your reply and help. >> #CategoryEvent TypeRefCtTimestampAddressSizeResponsible LibraryResponsible >> Caller >> 0NSMenuItemMalloc13059475443200x1a4cccd064AppKit-[NSMenu >> insertItemWithTitle:action:keyEquivalent:atIndex:] >> 1NSMenuItemFree03289974881280x1a4cccd0-64AppKit-[NSMenu

Re: bouncing an NSScrollView like UIScrollView

2010-11-06 Thread Kyle Sluder
On Nov 6, 2010, at 3:41 PM, Alexander Cohen wrote: > Has anyone tried getting the NSScrollView to bounce around when it hits the > content edges just like the UIScrollView does? Is there any open source code > out there that might do this or at least point me in the right direction? Why would

bouncing an NSScrollView like UIScrollView

2010-11-06 Thread Alexander Cohen
Has anyone tried getting the NSScrollView to bounce around when it hits the content edges just like the UIScrollView does? Is there any open source code out there that might do this or at least point me in the right direction? thx AC___ Cocoa-dev mai

Interrupt copyItemAtPath

2010-11-06 Thread gMail.com
I copy a 14GB file with - (BOOL)copyItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath error:(NSError **)error Since the copy could take several minutes, I would grant the user the opportunity to interrupt the copy pressing a given button. Is a way to tell copyItemAtPath to break the job and

Re: Over-released NSMenuItem on using "Open Recent" via Help menu search

2010-11-06 Thread Kyle Sluder
On Sat, Nov 6, 2010 at 1:47 PM, Keith Blount wrote: > Thanks! I just tried that but the menu item is created and destroyed by the > AppKit as far as I can see. The offending object: > > objc[88279]: FREED(id): message _bindingAdaptor sent to freed > object=0x1a4cccd0 > > Checking that object addr

Temporarily disable button key equivalent

2010-11-06 Thread Eric Crichlow
I have a data entry sheet that has the Return key set as the key equivalent for the OK button, to dismiss the sheet. The sheet has a couple of NSComboBox controls on it. When the combobox dropdown is showing, I want the user to be able to use the arrow keys to pick an item and hit the Return key

Re: Over-released NSMenuItem on using "Open Recent" via Help menu search

2010-11-06 Thread Keith Blount
Many thanks for the replies, much appreciated. >> The really strange thing is that my program has no control >> over that menu and has nothing to do with it - as I understand >> it, its population is all handled internally by NSDocumentController > Have you tried with other NSDocument-based apps?

Re: Custom NSSavePanel

2010-11-06 Thread Quincey Morris
On Nov 6, 2010, at 13:36, Stephen Blinkhorn wrote: > I'd like to add a couple of options in an NSSavePanel so a user can specify > the type of sound file to save a document as, e.g. AIFF, WAV etc and also a > quality e.g. 24 or 16 bit. Is it possible to add a couple of NSPopUpMenu > controls t

Re: Main but not Key window behavior

2010-11-06 Thread jonat...@mugginsoft.com
On 6 Nov 2010, at 18:26, John Pannell wrote: > Hi all- > > I would like to present a utility panel in my application that becomes the > key window, but not the main window. I would like the main window to > maintain its active appearance, as is documented in the NSWindow docs, > specifically

Re: Main but not Key window behavior

2010-11-06 Thread Quincey Morris
On Nov 6, 2010, at 11:26, John Pannell wrote: > I would like to present a utility panel in my application that becomes the > key window, but not the main window. I would like the main window to > maintain its active appearance, as is documented in the NSWindow docs, > specifically: > > http:/

Re: Custom NSSavePanel

2010-11-06 Thread Stephen Blinkhorn
Great, thanks Sean. Somehow managed to miss that. On 6 Nov 2010, at 14:42, Sean McBride wrote: On Sat, 6 Nov 2010 14:36:43 -0600, Stephen Blinkhorn said: I'd like to add a couple of options in an NSSavePanel so a user can specify the type of sound file to save a document as, e.g. AIFF, WAV e

Re: Custom NSSavePanel

2010-11-06 Thread Sean McBride
On Sat, 6 Nov 2010 14:36:43 -0600, Stephen Blinkhorn said: >I'd like to add a couple of options in an NSSavePanel so a user can >specify the type of sound file to save a document as, e.g. AIFF, WAV >etc and also a quality e.g. 24 or 16 bit. Is it possible to add a >couple of NSPopUpMenu controls

Re: Setting (not saving) NSPersistentDocument Metadata changes file Modification Date

2010-11-06 Thread Sean McBride
On Thu, 4 Nov 2010 21:53:28 -0700, Adam Swift said: >The NSPersistentStoreCoordinator class method works directly with the >file at the specified URL and so writes the metadata to the the file >immediately. I guess you're referring to PSC's: +setMetadata:forPersistentStoreOfType:URL:error: ? Is

Custom NSSavePanel

2010-11-06 Thread Stephen Blinkhorn
Hello, I'd like to add a couple of options in an NSSavePanel so a user can specify the type of sound file to save a document as, e.g. AIFF, WAV etc and also a quality e.g. 24 or 16 bit. Is it possible to add a couple of NSPopUpMenu controls to NSSavePanel or is it necessary to build a cu

Re: CoreData models as structures

2010-11-06 Thread Quincey Morris
On Nov 6, 2010, at 11:41, Ayers, Joseph wrote: > The fundamental problem seems to be nested to-many relationships. The sample > code twomanycontroller seems to do what I want, but it's pre-core data and > the data model won't open. One wonders how a coredata version of that would > work. Again

Re: Over-released NSMenuItem on using "Open Recent" via Help menu search

2010-11-06 Thread Kyle Sluder
On Sat, Nov 6, 2010 at 11:37 AM, Keith Blount wrote: > I can reproduce this every time myself (I've copied the backtrace at the end > of > this e-mail). And yet if you go to the File > Open Recent menu and open a > document directly from there, everything is fine - it's only when using the > Hel

Re: Over-released NSMenuItem on using "Open Recent" via Help menu search

2010-11-06 Thread Sean McBride
On Sat, 6 Nov 2010 11:37:18 -0700, Keith Blount said: >My application is an NSDocument-based app, and my user pointed out that >he could >make my application crash every time by following this sequence: > >1) Hit shift-cmd-/ to bring up the Help menu with the search field focussed. >2) Type "recen

Traversing multiple to-many relationships.

2010-11-06 Thread Ayers, Joseph
Does anyone know of any sample code that traverses multiple two-many relationships in the context of core data? Thanks, Joseph Ayers___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the l

Re: CoreData models as structures

2010-11-06 Thread Ayers, Joseph
The fundamental problem seems to be nested to-many relationships. The sample code twomanycontroller seems to do what I want, but it's pre-core data and the data model won't open. One wonders how a coredata version of that would work. ja On Nov 6, 2010, at 1:25 PM, Quincey Morris wrote: > On

Over-released NSMenuItem on using "Open Recent" via Help menu search

2010-11-06 Thread Keith Blount
Hello, One of my users has just brought a crasher to my attention regarding the File > Open Recent menu in my application, and having spent all day banging my head against a wall, I'm hoping someone on the list might either have seen something like this before or just see something obvious I'm

Main but not Key window behavior

2010-11-06 Thread John Pannell
Hi all- I would like to present a utility panel in my application that becomes the key window, but not the main window. I would like the main window to maintain its active appearance, as is documented in the NSWindow docs, specifically: http://developer.apple.com/library/mac/#documentation/Coc

Re: CoreData models as structures

2010-11-06 Thread Quincey Morris
On Nov 6, 2010, at 06:54, Ayers, Joseph wrote: > On Nov 5, 2010, at 7:52 PM, Quincey Morris wrote: > >> A. With your declarations, 'tapeList.tapes' is a NSSet. The set doesn't have >> a "VideoClio" property (though its members do), and the compiler is >> correctly telling you that you can't ref

Re: CoreData models as structures

2010-11-06 Thread Ayers, Joseph
On Nov 5, 2010, at 7:52 PM, Quincey Morris wrote: > On Nov 5, 2010, at 15:13, Ayers, Joseph wrote: > >> I have a core data model that has a series of to-many relationships of the >> type: >> >> @interface TapeList : NSManagedObject >> { >> NSString * ListURL; >> NSSet* tapes; >> } >> >>

Re: Switching app type from background only to full UI, and back?

2010-11-06 Thread jonat...@mugginsoft.com
On 5 Nov 2010, at 06:36, Jim Wintermyre wrote: > > - I could turn on LSUIElement and always run the app in the background. > Whenever the app needs to display a window, it launches a separate proxy app > which shows up in the dock and app switcher. The purpose of this app is > solely to manag

Re: NSColorWell in a NSTableView

2010-11-06 Thread vincent habchi
Le 6 nov. 2010 à 00:46, Corbin Dunn a écrit : […] > See the AnimatedTableView demo I wrote for WWDC a few years ago. > > http://developer.apple.com/library/mac/#samplecode/AnimatedTableView/Introduction/Intro.html Thanks Corbin, have a nice week-end! Vincent

Re: Switching app type from background only to full UI, and back?

2010-11-06 Thread Dave Keck
I'm sure you're dreading this question, but can you elaborate on why you can't separate your processing code from your UI code? It sounds like you're mainly avoiding it due to the amount of work involved, but you also mentioned that there might be technical limitations; if you're able to elaborate