Immediate Nib Loading Error

2009-01-06 Thread Steve Cronin
Folks; I'm getting an immediate crash, before I can get anything written into a log (before any class +iniitialize). The stack at the crash is below. In the debugger (XC3.1) I enter 'frame 9' and then do a 'po *(id*) ($ebp+16)' to see what the offending object is but I just get "No symbol

Synchronizing QTMovieLayers

2009-01-06 Thread Seth Willits
Howdy guys, I have a need to make sure multiple QTMovieLayers are in perfect sync. In other words, I need them to start at exactly the same time. If you just do a few [movieN play] in a row, they're slightly off from each other. Has anyone done this? Any suggestions? (I'd really rather n

Overriding NSTextField keyDown?

2009-01-06 Thread Mr. Gecko
Hello, I've been trying to override the NSTextField keyDown method, but it didn't seem to work. I've searched in the archives, but got nowhere, all I could find is to override the text field editor. But how could I do that? This is all very confusing. All I really need to do is when the user

Binding of "Object" and "Value" in NSPopupButtonCell

2009-01-06 Thread Jerry Krinock
I'm working on a Core Data document-based app. Think of DepartmentsAndEmployees, where each document models one department, containing employees. I want to add a "rank" attribute to the Employee class, an enumerated NSNumber representing something like this: NSNumber Descriptio

Re: Which language to get started with cocoa development?

2009-01-06 Thread Nate Weaver
Objective-C is a pretty small addition on the top of regular C. It's the Cocoa libraries that take the time, no matter what language you use. On Dec 31, 2008, at 2:22 AM, Achim Domma wrote: Hi, I develop software for a living and want to get started with cocoa development just for fun. I'm

NSWindowController deallocation does not remove key value observing

2009-01-06 Thread Guy Meyer
Hi I have got an NSWindowController subclass which loads a nib window with few NSControls. These NSControls are bound to some other objects. When the window is closed, the NSWindowController is being deallocated and all it is NSControls sub views are also being deallocated (as it should

New MacBookPro and DisplayID w/two graphics cards

2009-01-06 Thread Trygve Inda
The New MacBook Pros have 2 graphics cards. When I get the DisplayID, the slow card and fast card differ by 2... ie: Fast card DisplayID 1234567 Slow card DisplayID 1234565 (not real numbers) After switching modes in the Energy System Pref Pane, calls to get the DisplayID return the correct re

Re: NSTreeController delete slowness...

2009-01-06 Thread kvic...@pobox.com
this if primarily for the archives, but its not a complete solution. i've managed to improve the performance of deletes by a factor of 4-4.5 by simply calling: -[NSTreeController setSelectionIndexPaths: nil]; prior to actually removing objects from my bound set. note that this is still

Re: Visualization strategy/choosing a framework

2009-01-06 Thread Barry Wark
On Wed, Dec 31, 2008 at 7:19 PM, Adam Foltzer wrote: > Hello everyone, > > I've been lurking here for a while as I've been learning the Cocoa ropes, > and I'm at the point where I need to put the (excellent) Hillegass theory > into practice. My app is an interactive particle swarm optimization ( >

[MEET] CocoaHeads in SF (and everywhere else)

2009-01-06 Thread Stephen Zyszkiewicz
CocoaHeads: Silicon Valley will be meeting in San Francisco next week during MacWorld! We will have Mike Lee with his Pimp My App 2.0 presentation so be sure to check us out if you are in town: http://cocoaheads.org/us/SiliconValleyCalifornia/index.html All January CocoaHeads meetings: Cana

Re: Problems with object observing own key

2009-01-06 Thread Chris Campbell
I'm seeing this warning printed in an app that's linked and run on Leopard. Any ideas? Colin, Mike: how did you deal with it? I have an object observing itself (through bindings) and it removes itself as an observer inside its -dealloc method: - (void)dealloc { [self unbind:

Finding bounding rect of substring inside a wrapped string

2009-01-06 Thread Dave DeLong
Hi everyone, The title basically says it. I have a string (not very long; less than 150 characters) that is wrapped inside an NSTextField (a label). I want to find the bounding rects of a couple substrings, so that I can overlay them with an NSButton. I've been searching around, and I'

Finding bounding rect of substring inside a wrapped string

2009-01-06 Thread Dave DeLong
(Sorry if you're seeing this twice... I never got it and it's not in the archives, so I'm resending it) Hi everyone, The title basically says it. I have a string (not very long; less than 150 characters) that is wrapped inside an NSTextField (a label). I want to find the bounding rects o

Localize Attributed Strings?

2009-01-06 Thread Chunk 1978
is this possible? i have a string that changes color and size according to the length of the words in the string. however, these words and their lengths change in different languages. clearly i could add and NSLocalization wrapper to the string, but the problem is that the attributes would remai

Using the security framework

2009-01-06 Thread Joe Turner
Hello! I am making a hard drive cloner/backuper, and to do some deleting and copying, I need to use the security framework. What I need to be able to do is have the user type in their password one time, and then it would give me system.privilege.admin rights until a time that they want to

hitTest: On Moving CALayer

2009-01-06 Thread Bridger Maxwell
Hey, I am having a difficult time using hittest on a layer containing many sublayers which are moving. The moving sublayers are SCJammerSignal, a subclass of CALayer, and are all in a layer named signalLayer. The layers are moved with an explicit CAKeyframeAnimation which acts on their position. Wh

Removing CALayer after Animation

2009-01-06 Thread Bridger Maxwell
Another question on Core Animation. I am creating temporary CALayers, and animating them across a parent layer. I would like to delete the layers once they have reached their destination. I are using the delegate method animationDidStop:finished: on the animation, but it returns only a reference t

Re: Countdown With NSTimer - Hours, Minutes, Seconds Remaining?

2009-01-06 Thread Chunk 1978
*thread shocked back to life* since this timer i'm writing is based on NSDate, it's effected if the computer's clock is manually changed... that i don't mind, because who really need to ever manually set their clock on the computer... however, i'm concerned that if (probably when) my timer is runn

How to create a simple service in Leopard?

2009-01-06 Thread Dalmazio Brisinda
Hello, I'm having some problems writing and then installing my own service and would be grateful if anyone could help. I've followed the OS X documentation but still can't seem to get my custom "hello world" service to work. I'm creating a new project in Xcode using the Foundation Tool as

Re: How to create a simple service in Leopard?

2009-01-06 Thread Dalmazio Brisinda
Hello, Whoops, actually SimpleService does work... my mistake. I'll have a closer look at this example. Best, Dalmazio On 4-Jan-09, at 2:41 AM, Dalmazio Brisinda wrote: Hello, I'm having some problems writing and then installing my own service and would be grateful if anyone could hel

Re: UIImageView drawRect not called

2009-01-06 Thread Julian
I have independently encountered the same scenario and gotten the same results. The documentation suggests that if you call setNeedsDisplayInRect:, drawRect: will get called. Also, I have put a symbolic breakpoint on -[UIImageView drawRect:], and it does get called sometimes, but seemingly not ever

Re: How to create a simple service in Leopard?

2009-01-06 Thread Dalmazio Brisinda
Hello, Okay, a bit of weirdness is going on. For the Info.plist file, It seems that Xcode generates the key for the menu item as "Menu item title" instead of "default" after a build -- even when it appears as "default" in Xcode. If I manually edit the Info.plist file and make it "default"

NSBorderlessWindowMask and Leopard's Spaces

2009-01-06 Thread Benjamin Dobson
In my application, I am using a custom window based on NSBorderlessWindowMask. You can drag the titlebar to move it around. How do I make this play nice with Spaces? Dragging to the edge of the screen should switch space after a short delay, and holding the titlebar while switching space sh

Problem with iPhone project

2009-01-06 Thread William Squires
Hi! I just got the book "Beginning iPhone Development: Exploring the iPhone SDK" by Dave Mark/Jeff LaMarche. In Chapter 3, I built the project, but it keeps crashing. The gdb debugger console log shows: " ButtonFun[] *** Terminating app due to uncaught exception 'NSInternalInconsistencyE

Test

2009-01-06 Thread Carl Anderson
Have the mailing lists at Apple been closed? I have not received a single digest since midnight at the end of last year ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contac

NSScrollView begin/end scrolling

2009-01-06 Thread Alexander Cohen
Hi, Is there a way to get notified of when a scrollView begins and ends a scrolling session? thx AC ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

AFP server loss notification.

2009-01-06 Thread Sandro Noel
Greetings! I created a little application called Bonjour Mounter. and i'm having a little problem. when a server is mounted, and it notifies that it is going offline, I get a bonjour notification that the service disappeared, but so does Finder or OS X, and it dismounts the drives before BM ha

[MEET] CocoaHeads Frankfurt, TONIGHT 8PM

2009-01-06 Thread Torsten Curdt
Tonights it's on again! Drop by if you are around. More information at http://cocoaheads.org/de/Frankfurt/index.html iCal: webcal://www.cocoaheads.org/de/Frankfurt/events.ics cheers -- Torsten http://vafer.org/blog http://twitter.com/tcurdt ___ Cocoa

Custom NSControl is not visible when dropped on a window from IB3.1 Library

2009-01-06 Thread Richard Humiston
I have a custom NSControl and custom NSCell. I created an IBPlugin and framework per IB Plugin programming guide, and also used the clock control example as a guide. My control appears (draws itself) in the library pane. When I drag the control to a window in IB, only a rectangle (made

Overlay controls a la iTunes and QuickTime

2009-01-06 Thread Kiel Gillard
Howdy all, What would be the best way to implement a HUD-like overlay of controls in the same manner as iTunes and QuickTime? These overlays can be seen when playing a video in iTunes 8 or a full screen video in (at least) the free version of QuickTime. Is there example code or open sourc

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

Accessing objects two ways in an object hierarchy

2009-01-06 Thread Per Ohlson
I have a relationship similar to the following model in my program: http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/Art/object_graph.gif To access the objects corresponding to the collection of "employees" from the "department", I just iterate through the collection

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: Determining width of a cell in an NSOutlineView

2009-01-06 Thread Eric Gorr
On Dec 19, 2008, at 6:03 PM, Corbin Dunn wrote: For that, you want to use -cellSizeForBounds: -- pass in a large height, but a constrained width. Use a width that is equal to the [tableColumn width] minus indentation * (level + 1) although, the actual value that outlineview uses for

[MEET] Minnesota CocoaHeads 1/8/09

2009-01-06 Thread bob
The next Minnesota CocoaHeads meeting is this Thursday (1/8) from 6:00pm - 8:00pm. We meet at the offices of Synergy Information Services in Bloomington. Dylan Bruzenak, from IdeaSwarm, will be leading a discussion about customizing your Xcode environment to write code more effectively and

Re: Which language to get started with cocoa development?

2009-01-06 Thread marc hoffman
Achim, - ObjC looks interesing, but would be a new language to learn. I like to learn new languages, but I also prefer to do one step after another. So learning Cocoa and Obj-C toghether could be frustrating. ymmv, but i'd think it would be more frustrating to learn Cocoa with anything *b

Re: alloc init thread safe?

2009-01-06 Thread John Love
This request focuses on an old cocoabuilder thread: http://www.cocoabuilder.com/archive/message/cocoa/2007/3/8/179989 David writes: >>> But now I find I have a BOOL method that is rarely and randomly returning NO when the only exit to the method is "return YES;" so I have some strange problem s

Re: Determining width of a cell in an NSOutlineView

2009-01-06 Thread Eric Gorr
On Dec 19, 2008, at 6:03 PM, Corbin Dunn wrote: On Dec 19, 2008, at 2:30 PM, Eric Gorr wrote: I just need to know the width so I base the height on the width. For that, you want to use -cellSizeForBounds: -- pass in a large height, but a constrained width. Use a width that is equal to

Re: Pull Down Toolbar Item

2009-01-06 Thread Peter Ammon
Try changing the image position via setImagePosition: or in IB. On Dec 29, 2008, at 1:26 PM, Carmen Cerino Jr. wrote: I am now 99% sure that its drawing method is doing something awkward. Here are the results of what happened when I implemented my own draw method: http://screencast.com/t/F

Re: Determining width of a cell in an NSOutlineView

2009-01-06 Thread Corbin Dunn
On Jan 5, 2009, at 8:56 AM, Eric Gorr wrote: On Dec 19, 2008, at 6:03 PM, Corbin Dunn wrote: On Dec 19, 2008, at 2:30 PM, Eric Gorr wrote: I just need to know the width so I base the height on the width. For that, you want to use -cellSizeForBounds: -- pass in a large height, but a

Re: Determining width of a cell in an NSOutlineView

2009-01-06 Thread Eric Gorr
On Jan 5, 2009, at 12:37 PM, Corbin Dunn wrote: On Jan 5, 2009, at 8:56 AM, Eric Gorr wrote: On Dec 19, 2008, at 6:03 PM, Corbin Dunn wrote: On Dec 19, 2008, at 2:30 PM, Eric Gorr wrote: I just need to know the width so I base the height on the width. For that, you want to use -ce

Test-I've received no mail here since 2008... just checking

2009-01-06 Thread Skip Meier
Why??? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.ap

Re: Basic: How to go about implementing such a view?

2009-01-06 Thread Fritz Anderson
I'm responding off the top of my head, so take all of this as just my first, instinctual approach. On 30 Dec 2008, at 10:35 PM, Matt Rajca wrote: I am trying to figure out how to implement a 'Piano Roll' view in Cocoa. Attached is a screenshot of what I'm trying to accomplish. Disregard th

Table sort image question

2009-01-06 Thread Jon C. Munson II
Namaste! I have the following call: - (void)tableView:(NSTableView *)tv didClickTableColumn:(NSTableColumn *)tableColumn { NSImage *sortImage = [tv indicatorImageInTableColumn:tableColumn]; ... } The tableColumn in question has an up-triangle in the right side of the column header. Ca

Re: Reversing a String

2009-01-06 Thread Douglas Davidson
On Dec 31, 2008, at 8:52 AM, Michael Ash wrote: The fundamental error that everyone is making here is in assuming that a unichar is a single indivisible unit that can be tossed around at will. But it doesn't work that way. Sometimes you have multiple unichars next to each other in a grouping wh

Re: [SOLVED--AGAIN] Re: Printing a range of text in a particular container --

2009-01-06 Thread Douglas Davidson
On Dec 29, 2008, at 11:35 AM, John Velman wrote: Martin -- still thanks, but, I found a fourth method: NSLayoutManager -setTextContainer:forGlyphRange: This method isn't really suitable for general use. This method is intended to be called by the typesetter during the layout process, and

Re: Which language to get started with cocoa development?

2009-01-06 Thread Shawn Erickson
On Wed, Dec 31, 2008 at 12:22 AM, Achim Domma wrote: > Hi, > > I develop software for a living and want to get started with cocoa > development just for fun. I'm good at python, C, C++ and C# and have some > Ruby knowledge. Now I'm asking myself, which language I should use to get > started with c

Lookig for Xcode/Cocoa template for screensaver & interactive OpenGL app

2009-01-06 Thread Greg Edwards
Hi folks, I'm looking for an Xcode/Cocoa template that can build a screensaver, and also a normal interactive OpenGL app with the same gfx, in a bordered window or full-screen, with keystroke and gui control. This is for OpenGL and shader experimentation, to run only on Mac OS X 10.4/5. I've got t

Memory Management to NSError

2009-01-06 Thread Dong Feng
How shall we handle the NSError object returned directly or indirectly (through out parameter)? Shall it be released after use? I checked the example code in Apple document but never see a returned NSError object get released. ___ Cocoa-dev mailing list

Graphics "playback" suggestion?

2009-01-06 Thread Robert Monaghan
Hi Everyone, I am trying to figure out what the best method is, to playback "generated" graphics. I am downloading image data over ethernet, and then processing the imagery. Currently I am creating a NSBitmapImageRep, and populating the buffer with my pixel data. I then draw this inside

Programmatically locking user screen

2009-01-06 Thread Ashish Tiwari
Hi All, How can I lock user screen (using cocoa+objC) that just a quote appears at screen and user can not use their machine until my software unlocks the screen. You might find it rude but that is required as we are developing a training room software and the trainer should we able to lock al

re: Problem adding an entity to a to-many relationship

2009-01-06 Thread Ben Trumbull
Keith, I am trying to get my head round Core Data and Bindings. This can be a lot easier to do for the technologies separately. You can create a Foundation tool project, add the Core Data framework, and work out your Core Data learning in a simple command line tool. The "Low Level Core

Re: Visualization strategy/choosing a framework

2009-01-06 Thread Andrew Farmer
On 01 Jan 09, at 10:56, Adam Foltzer wrote: Off to do some refactoring of my Swarm class; at the risk of spawning a tangent, am I just completely missing a Cocoa data structure that's suited to matrices of scalar values? I had a working implementation using nested NSMutableArrays, but the co

Re: Which language to get started with cocoa development?

2009-01-06 Thread Joel Norvell
Achim, This topic comes up on this list periodically. There was a good thread last October on "Why Objective-C?" http://www.cocoabuilder.com/archive/message/cocoa/2008/10/30/221401 (There are also other threads on this topic on this list.) Personally, I'd say you can't go wrong with ObjC. Bu

Scheduling an application

2009-01-06 Thread Mahaboob
I need to implement Scheduling In my application.For that I designed the UI having date and time fields and ok and cancel button. When I'm clicking the ok button, the opened project should be added into the schedule task and it should work on time. How can I invoke scheduler to my application? How

[Moderator] Cocoa-Dev must have had a hard New Years

2009-01-06 Thread Scott Anguish
As you many know, the list as absent from 12am PST till just recently. The server seems to have had too much New Years celebration, and an intervention was required. Thanks for your patience, and that of the people I kept poking about. Sincerely scott [moderator] ___

Re: Stumped on memory problem :(

2009-01-06 Thread Stephen J. Butler
On Thu, Jan 1, 2009 at 7:14 PM, Jacob Rhoden wrote: >NSMutableArray *array = [[NSMutableArray array] init]; You mean alloc] init] here. Other than that, looks good! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin re

Re: Stumped on memory problem :(

2009-01-06 Thread Hsu
NSMutableArray *array = [[NSMutableArray array] init]; Should be NSMutableArray *array = [[NSMutableArray alloc] init]; Karl -- Variables won’t, constants aren’t. Homepage: http://homepage.mac.com/khsu/index.html ___ Cocoa-dev mailing li

Re: Stumped on memory problem :(

2009-01-06 Thread Andrew Farmer
On 01 Jan 09, at 17:14, Jacob Rhoden wrote: NSMutableArray *array = [[NSMutableArray array] init]; This line looks incredibly suspicious. Try NSMutableArray *array = [[NSMutableArray alloc] init]; instead? ___ Cocoa-dev mailing list (Cocoa

Re: Stumped on memory problem :(

2009-01-06 Thread Rob Keniger
On 02/01/2009, at 11:14 AM, Jacob Rhoden wrote: NSMutableDictionary* dict = [[NSMutableDictionary alloc] init]; [dict setValue: @"" forKey: [NSString stringWithString:@"one"]]; [dict setValue: @"" forKey: [NSString stringWithString:@"two"]]; NSMutableArray *array = [[NSMutableArray

Re: Stumped on memory problem :(

2009-01-06 Thread Quincey Morris
On Jan 1, 2009, at 17:14, Jacob Rhoden wrote: NSMutableArray *array = [[NSMutableArray array] init]; You mean: NSMutableArray *array = [[NSMutableArray alloc] init]; ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Which language to get started with cocoa development?

2009-01-06 Thread Benjamin Dobson
On 1 Jan 2009, at 17:23:50, Achim Domma wrote: Thanks to everybody giving feedback to my question! Obviously I'll have to get started with ObjC. Most people refer to the Cocoa design patterns I'll have to get used to. Currently I think about buying http://www.pragprog.com/titles/dscpq/cocoa-

Re: Which language to get started with cocoa development?

2009-01-06 Thread Kyle Sluder
On Thu, Jan 1, 2009 at 2:44 PM, Keary Suska wrote: > "True" or "native" Cocoa is only available for Objective-C and Java API. > There are API ports to to other languages, Ruby is one that I am aware of, > but they are not really Cocoa. They are just Cocoa-like. That may enough for > your purposes.

Re: Stumped on memory problem :(

2009-01-06 Thread Andy Lee
On Jan 1, 2009, at 8:14 PM, Jacob Rhoden wrote: NSMutableArray *array = [[NSMutableArray array] init]; You want either [[NSMutableArray array] retain] or [[NSMutableArray alloc] init]. --Andy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

NSUIHeartBeat gets stuck

2009-01-06 Thread Adam R. Maxwell
I have an app that starts and stops a spinning progress indicator based on the number of operations in an NSOperationQueue. The spinner is started and stopped only on the main thread, and is set to hide when not spinning. After canceling all operations in the queue and immediately adding

Re: Making an object release itself?

2009-01-06 Thread Jean-Daniel Dupas
Le 1 janv. 09 à 20:00, Jim Correia a écrit : On Dec 30, 2008, at 10:28 PM, Jacob Rhoden wrote: Im still learning cocoa, so I have a question about if this is a good idea or a crazy noob mistake. Given the following code can I alter it so that postreader auto releases itself? [...] I'm t

Re: Problem adding an entity to a to-many relationship

2009-01-06 Thread Keith Lander
On 6 Jan 2009, at 06:15, Ben Trumbull wrote: I am trying to get my head round Core Data and Bindings. This can be a lot easier to do for the technologies separately. You can create a Foundation tool project, add the Core Data framework, and work out your Core Data learning in a simple co

Re: Odd EXEC_BAD_ACCESS after executing URLRequest

2009-01-06 Thread marc hoffman
Jason, +[NSURLConnection sendSynchronousRequest:returningResponse:error:] ? Recursively pumping the run loop like that in the default mode is discouraged. I don't know the specifics of why, but crashes such as you're seeing could be part of it. same happens when i frun the code "proper" as

Re: Visualization strategy/choosing a framework

2009-01-06 Thread E. Wing
> Off to do some refactoring of my Swarm class; at the risk of spawning a > tangent, am I just completely missing a Cocoa data structure that's suited > to matrices of scalar values? I had a working implementation using nested > NSMutableArrays, but the code wound up looking disgusting (my fault, n

Re: Basic: How to go about implementing such a view?

2009-01-06 Thread René v Amerongen
Hi, On 31 dec 2008, at 05:35, Matt Rajca wrote: 3. Should I put the notes (colorful rectangles) each in a separate view (or Core Animation layer), or is it effective to just draw them directly in the main view (same view in which the rows are drawn)? I am eventually going to want to resiz

Re: Which language to get started with cocoa development?

2009-01-06 Thread Jean-Daniel Dupas
Le 1 janv. 09 à 20:44, Keary Suska a écrit : On Dec 31, 2008, at 1:22 AM, Achim Domma wrote: I develop software for a living and want to get started with cocoa development just for fun. I'm good at python, C, C++ and C# and have some Ruby knowledge. Now I'm asking myself, which language I

Re: Immediate Nib Loading Error

2009-01-06 Thread Kyle Sluder
On Fri, Jan 2, 2009 at 3:13 PM, Steve Cronin wrote: > I'm getting an immediate crash, before I can get anything written into a log > (before any class +iniitialize). Have you tried +load? > The stack at the crash is below. > > In the debugger (XC3.1) I enter 'frame 9' and then do a 'po *(id*) >

Re: Visualization strategy/choosing a framework

2009-01-06 Thread John Kestner
If it doesn't require a Cocoa app, there's also tools tuned for 2D/3D visualization like Processing. It's very easy to get into, but since it's based on Java, you can dig deeper. There are several libraries that increase its usefulness, including one which apparently adds OpenGL acceleratio

Re: Stumped on memory problem :(

2009-01-06 Thread Sherm Pendley
On Jan 1, 2009, at 8:14 PM, Jacob Rhoden wrote: I have read the memory management documentation over and over but still cannot work out the problem with this code, can anyone see it? I have spent hours on this! NSMutableArray *array = [[NSMutableArray array] init]; +array returns an al

Re: Stumped on memory problem :(

2009-01-06 Thread Kyle Sluder
On Thu, Jan 1, 2009 at 8:14 PM, Jacob Rhoden wrote: >NSMutableArray *array = [[NSMutableArray array] init]; -array returns an autoreleased object. You meant to do [[NSMutableArray alloc] init]. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@

New MacBookPro and DisplayID weirdness w/two graphics cards

2009-01-06 Thread Trygve Inda
The New MacBook Pros have 2 graphics cards. When I get the DisplayID, the slow card and fast card differ by 2... ie: Fast card DisplayID 1234567 Slow card DisplayID 1234565 (not real numbers) After switching modes in the Energy System Pref Pane, calls to get the DisplayID return the correct re

Re: Immediate Nib Loading Error

2009-01-06 Thread Kyle Sluder
On Tue, Jan 6, 2009 at 3:55 AM, Kyle Sluder wrote: > you're on i386, self is at EBP[8] anyway (I'm unfamiliar with the Correction, self is at EBP[4]. But you're probably interested in the first parameter to the method, not the NSIBObjectData object, so you want EBP[12] (self at EBP[4], cmd at EB

Re: Synchronizing QTMovieLayers

2009-01-06 Thread E. Wing
On 1/2/09, Seth Willits wrote: > Howdy guys, > > > I have a need to make sure multiple QTMovieLayers are in perfect sync. > In other words, I need them to start at exactly the same time. If you > just do a few [movieN play] in a row, they're slightly off from each > other. > > Has anyone done this

Re: Which language to get started with cocoa development?

2009-01-06 Thread Sherm Pendley
On Jan 1, 2009, at 3:20 AM, Bill Bumgarner wrote: But until you know Objective-C well enough to fluidly interact with the system APIs, trying to futz with said APIs from some other language just adds significant -- and easily avoided -- overhead to the learning process. I couldn't agree m

Re: Display Mail type outlineView numbers

2009-01-06 Thread Volker in Lists
Hi there, see this as an example: http://www.bdunagan.com/2008/11/10/cocoa-tutorial-source-list-badges-part-2/ Cheers, Volker Am 01.01.2009 um 15:59 schrieb vince: Thanks for the help. I would like to display the small blue circle and associated numbers that refer to the amount of entries

Re: Stumped on memory problem :(

2009-01-06 Thread Jeremy Pereira
On 2 Jan 2009, at 01:14, Jacob Rhoden wrote: I have read the memory management documentation over and over but still cannot work out the problem with this code, can anyone see it? I have spent hours on this! +(NSMutableArray*)getStrings { NSMutableDictionary* dict = [[NSMutableDictionary

Re: Stumped on memory problem :(

2009-01-06 Thread Graham Cox
On 2 Jan 2009, at 12:14 pm, Jacob Rhoden wrote: I have read the memory management documentation over and over but still cannot work out the problem with this code, can anyone see it? I have spent hours on this! +(NSMutableArray*)getStrings { NSMutableDictionary* dict = [[NSMutableDictio

Re: Enum advice please

2009-01-06 Thread Graham Cox
On 5 Jan 2009, at 6:14 pm, Damien Cooke wrote: 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'

Re: Overlay controls a la iTunes and QuickTime

2009-01-06 Thread Jean-Daniel Dupas
Le 5 janv. 09 à 06:58, Kiel Gillard a écrit : Howdy all, What would be the best way to implement a HUD-like overlay of controls in the same manner as iTunes and QuickTime? These overlays can be seen when playing a video in iTunes 8 or a full screen video in (at least) the free version of

Re: Accessing objects two ways in an object hierarchy

2009-01-06 Thread Graham Cox
On 5 Jan 2009, at 7:15 pm, Per Ohlson wrote: I have a relationship similar to the following model in my program: http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/Art/object_graph.gif To access the objects corresponding to the collection of "employees" from the "de

Re: Test

2009-01-06 Thread Graham Cox
On 5 Jan 2009, at 3:49 am, Carl Anderson wrote: Have the mailing lists at Apple been closed? I have not received a single digest since midnight at the end of last year Same here, and nothing has been archived in that time either. 6 days downtime? That's pretty poor... I wonder if we'll ge

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

2009-01-06 Thread Jeremy Pereira
I pasted your code into a 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: typ

Re: Display Mail type outlineView numbers

2009-01-06 Thread Sandy McGuffog
You're probably going to have to display an image in an outlineview cell. Start by looking at ImageAndTextCell in the DragNDropOutlineView Developer example The alternative is to place NSAttributedStrings that have images imbedded in the outlineview. But I could never get the formatting to

Re: Stumped on memory problem :(

2009-01-06 Thread Sandy McGuffog
Haven't run the code, but I'd think that what you want is: NSMutableArray *array = [[NSMutableArray alloc] init]; Sandy On 02 Jan 2009, at 3:14 AM, Jacob Rhoden wrote: I have read the memory management documentation over and over but still cannot work out the problem with this code, can anyo

Re: Memory Management to NSError

2009-01-06 Thread Mike Abdullah
You didn't create the error object, so don't release it. Assume it is autoreleased. On 6 Jan 2009, at 02:16, Dong Feng wrote: How shall we handle the NSError object returned directly or indirectly (through out parameter)? Shall it be released after use? I checked the example code in Apple doc

Re: Countdown With NSTimer - Hours, Minutes, Seconds Remaining?

2009-01-06 Thread Mike Abdullah
On 4 Jan 2009, at 06:17, Chunk 1978 wrote: *thread shocked back to life* since this timer i'm writing is based on NSDate, it's effected if the computer's clock is manually changed... that i don't mind, because who really need to ever manually set their clock on the computer... however, i'm con

Re: Memory Management to NSError

2009-01-06 Thread Alexander Spohr
If you did not alloc it you should not release it. That is the rule for ALL objects. atze Am 06.01.2009 um 03:16 schrieb Dong Feng: How shall we handle the NSError object returned directly or indirectly (through out parameter)? Shall it be released after use? I checked the example cod

[Moderator] Re: Test

2009-01-06 Thread Scott Anguish
The lists were temporarily down after New Years. All subscribers are back. Please don't use the list as a message test reflector. that puts it in the mailboxes of some 8000 people. scott [moderator] On 4-Jan-09, at 11:49 AM, Carl Anderson wrote: Have the mailing lists at Apple been clo

Re: Test

2009-01-06 Thread Scott Anguish
You did, several messages ago From: Scott Anguish Date: January 6, 2009 2:09:48 AM EST To: Cocoa Users Subject: [Moderator] Cocoa-Dev must have had a hard New Years As you many know, the list as absent from 12am PST till just recently. The server seems to have had too much New Years celebrat

Re: Memory Management to NSError

2009-01-06 Thread Sherm Pendley
On Jan 5, 2009, at 9:16 PM, Dong Feng wrote: How shall we handle the NSError object returned directly or indirectly (through out parameter)? Shall it be released after use? I checked the example code in Apple document but never see a returned NSError object get released. Since it's not specifi

Re: Table sort image question

2009-01-06 Thread Graham Cox
On 6 Jan 2009, at 6:20 am, Jon C. Munson II wrote: Essentially what I’m trying to do is determine the sort of the column. One way I've found is to pull out the indicator image. I plan on comparing that to a named image for one of the indicator images. If there is a better way to do that

Re: Custom NSControl is not visible when dropped on a window from IB3.1 Library

2009-01-06 Thread Brandon Walkin
What you're experiencing could be caused by a number of issues. Mind posting the code? On 4-Jan-09, at 9:41 PM, Richard Humiston wrote: I have a custom NSControl and custom NSCell. I created an IBPlugin and framework per IB Plugin programming guide, and also used the clock control example

Binary search on sorted NSArray in Cocoa?

2009-01-06 Thread Karan, Cem (Civ, ARL/CISD)
I have an NSArray of unique NSString instances that I have sorted. I am looking for the neighbors of a specific string within the array, which basically means finding the string's index, and then looking at the objects ahead and behind the string. So far, so good; I can use indexOfObject to fi

Printing PDF Documentation

2009-01-06 Thread Development
No, I do not need to write code to work with PDF; the example program to do this is pretty good. However, lots of documentation from Apple and other companies are not available exclusively as PDF file. Does anyone know of a good reliable source for printing out hard copy of the documents?

Re: Overlay controls a la iTunes and QuickTime

2009-01-06 Thread Jean-Daniel Dupas
Le 6 janv. 09 à 10:53, Jean-Daniel Dupas a écrit : Le 5 janv. 09 à 06:58, Kiel Gillard a écrit : Howdy all, What would be the best way to implement a HUD-like overlay of controls in the same manner as iTunes and QuickTime? These overlays can be seen when playing a video in iTunes 8 or a

  1   2   >