Re: Adding actions to undo manager

2009-06-15 Thread Ryan Joseph
Thanks. What a challenge just for some basic undo support, there really should be something simpler than this. On Jun 15, 2009, at 1:08 PM, Kyle Sluder wrote: If you want undo manager support, you need to either perform the undo machinations yourself, or target your modifications at an entity

xcode 2.4 and gcc 3.3

2009-06-15 Thread Angelo Chen
Hi,every new project i created in xcode 2.4 uses gcc 3.3, but when compiling i got: gcc-3.3: installation problem, cannot exec `cc1obj': No such file or directory gcc-3.3: installation problem, cannot exec `cc1obj': No such file or directoryI need to change the gcc 3.3 to gcc 4.0, is there a way

Re: Core Data, to-many relationships, and object graph consistency

2009-06-15 Thread Quincey Morris
On Jun 14, 2009, at 12:20, Sebastian Celis wrote: SCBookTag *bookTag1 = [NSEntityDescription insertNewObjectForEntityForName:@"BookTag" inManagedObjectContext:managedObjectContext]; [bookTag1 setTag:tag1]; [bookTag1 setBook:book]; What implementation of the 'tag' and 'book' properties are you

Subtitle Track

2009-06-15 Thread Sandeep Nair
Hi, can anybody tell the difference between text track and subtitle track. I know to add a text track to a movie, how can i add a subtitle track. can i add more than two language foe subtitle track? is there any source regarding subtitle? Thanks in advance regards Sandeep

asl search optimization

2009-06-15 Thread Santosh Sinha
Hello list, I have written messages in asl log through asl_log() function. My problem is that when I went to search these messages through asl_search_query() method. it takes a long time to search them because it looks in whole system log. Now I am curious how to optimize asl search. can

to NIB or not to NIB

2009-06-15 Thread Chunk 1978
what are your thoughts? are developers who don't use IB masochists, or is it a wise choice? ___ 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-

Re: to NIB or not to NIB

2009-06-15 Thread Steve Bird
On Jun 15, 2009, at 6:56 AM, Chunk 1978 wrote: what are your thoughts? are developers who don't use IB masochists, or is it a wise choice? The prime directive is: USE THE BEST TOOL AT HAND FOR THE JOB AT HAND. If you have a better way, then use it! NOTE: the definition of "better" is high

Re: to NIB or not to NIB

2009-06-15 Thread KK
My opinion on IB is... I use Macs because it's so easy to design interfaces. On Mon, Jun 15, 2009 at 7:13 AM, Steve Bird wrote: > > On Jun 15, 2009, at 6:56 AM, Chunk 1978 wrote: > > what are your thoughts? are developers who don't use IB masochists, >> or is it a wise choice? >> > > > The pri

XCode and Safari Block Issues?

2009-06-15 Thread Chunk 1978
i installed Safari Block for Safai 4. Safari Block, for those who do not already know, blocks flash banner ads on internet sites. to install, users simply drag Safari Block folder into /Libary/InputManagers. Safai Block works fine. however, now whenever i seems to build/launch an app in XCode,

Re: XCode and Safari Block Issues?

2009-06-15 Thread Rob Keniger
On 15/06/2009, at 9:57 PM, Chunk 1978 wrote: however, now whenever i seems to build/launch an app in XCode, i get this message in the console: [Session started at 2009-06-15 07:53:16 -0400.] 2009-06-15 07:53:16.827 SimpleMenuScrolling[3044:10b] Error loading /Library/InputManagers/SafariBlock/

Re: Core Data, to-many relationships, and object graph consistency

2009-06-15 Thread Sebastian Celis
On Mon, Jun 15, 2009 at 2:56 AM, Quincey Morris wrote: > What implementation of the 'tag' and 'book' properties are you using? (That > is, how are setTag and setBook defined?) I am just using @property and @dynamic to define all of these. SCBook.h: @property (nonatomic, retain) NSSet *tags; //

Re: XCode and Safari Block Issues?

2009-06-15 Thread Jonathan del Strother
On Mon, Jun 15, 2009 at 12:57 PM, Chunk 1978 wrote: > i installed Safari Block for Safai 4.  Safari Block, for those who do > not already know, blocks flash banner ads on internet sites.  to > install, users simply drag Safari Block folder into > /Libary/InputManagers.  Safai Block works fine. > M

Re: XCode and Safari Block Issues?

2009-06-15 Thread Chunk 1978
thanks. ClickToFlash seems leagues of magnitude better. and now i don't have to deal with console nagging me when CG testing with XCode. On Mon, Jun 15, 2009 at 8:29 AM, Jonathan del Strother wrote: > On Mon, Jun 15, 2009 at 12:57 PM, Chunk 1978 wrote: >> i installed Safari Block for Safai 4.  S

Open a file when Application launch

2009-06-15 Thread rethish
Hi, I need to open the saved project file which is stored in the document folder by using scheduling. I created a plist file to launch my application at the scheduled time and and its working well. But I need to load the saved project file, when the application launches. How can I do it? What

Re: Core Data, to-many relationships, and object graph consistency

2009-06-15 Thread Sebastian Celis
I believe I found my issue. In my SCBook class I was overriding didChangeValueForKey:withSetMutation:usingObjects: so that I could store an NSString containing a comma-separated list of tags associated with the book. Apparently this is a very bad way to do it. I missed the big warning in the docume

Re: to NIB or not to NIB

2009-06-15 Thread Andy Lee
You're not the first to ask. May I suggest that we do not rehash this topic for the umpteenth time. Searching CocoaBuilder for "nibless" should give you all the food for thought you need. --Andy On Jun 15, 2009, at 6:56 AM, Chunk 1978 wrote: what are your thoughts? are developers who do

Re: Adding actions to undo manager

2009-06-15 Thread I. Savant
On Jun 15, 2009, at 3:35 AM, Ryan Joseph wrote: Thanks. What a challenge just for some basic undo support, there really should be something simpler than this. There is, and it's already been suggested. If you want higher-level functionality, use the higher-level facilities of the text

[iPhone] (newbie) navigation controller is null, combining navigation controller and tab bar controller

2009-06-15 Thread Beth Freeman
Hello,This is a follow up question to my previous question about combining a navigation controller with a tab bar controller. I have successfully combined the two in building the interface with Interface Builder: My top level controller is a tab bar controller. This references a navigation contro

ANN: Rosetta Booster Beta 1.0.1a (reference [NSTask] -launch return)

2009-06-15 Thread M Pulis
Group, In a failed attempt of the group to provide a solution for a recent poster, I became intrigued with the subjective analysis that the OP represented as facts responsible for rejecting (with extreme prejudice) my proposal in particular. Others may have received off- list personal reje

Re: [iPhone] (newbie) navigation controller is null, combining navigation controller and tab bar controller

2009-06-15 Thread Dave DeLong
This is a topic I've blogged about, since I've noticed other people struggling with it as well. In addition, I even created an instruction manual on how to do it for a class assignment. http://davedelong.com/blog/2009/05/13/adding-uinavigationuitableview-controllers-uitabbarcontroller HTH,

re: to NIB or not to NIB

2009-06-15 Thread Mr. George Warner
On Mon, 15 Jun 2009 06:56:11 -0400, Chunk 1978 wrote: > what are your thoughts? are developers who don't use IB masochists, > or is it a wise choice? Totally depends on your needs. Using IB is easier unless you're maintaining cross platform code that you want to share common (GUI) sources

Re: [iPhone] (newbie) navigation controller is null, combining navigation controller and tab bar controller

2009-06-15 Thread Greg Titus
Hi Beth, Something that you might try, just to simplify the number of IB hookups and cut down on the possibility of errors there, is to change this line: [delegate.topicsTableNavController pushViewController:questionDetail animated:YES]; To just: [self.navigationController pushViewCont

Re: Subtitle Track

2009-06-15 Thread Gordon Apple
This is a QuickTime question, not Cocoa. I was just looking into this recently. A text track is part of the movie. A subtitle track is an optional track usually depending on option settings and the machine's language settings. Yes, you can have multiple languages. Google it and you sho

spell checking

2009-06-15 Thread kvic...@pobox.com
my multi-document app has many windows and sheets, and there are LOTS of NSTextFields (and subclasses) and editable NSTableViews and editable NSOutlineViews in these windows and sheets. i would like to enable continuous spell checking (in response to a user preference) in a majority of these f

Re: [iPhone] (newbie) navigation controller is null, combining navigation controller and tab bar controller

2009-06-15 Thread Beth Freeman
Greg -Yes! That was it. I had missed hooking up the outlet in the App Delegate. I first tried the method you suggested and it worked; then I went into IB and hooked up the outlet correct to the topicsTableNavController and that worked too. Thank you SO much. Beth On Mon, Jun 15, 2009 at 9:17

Re: ANN: Rosetta Booster Beta 1.0.1a (reference [NSTask] -launch return)

2009-06-15 Thread Greg Guerin
M Pulis wrote: On a 4GB machine: Boot time increased 2.533 seconds or +6.535% for a 39 second boot. But did it solve the problem? That is, did "priming the pump" with the execution of an exit(0) ppc process reliably decrease the launch-time of another ppc process, the one actually desire

Re: Core Data, to-many relationships, and object graph consistency

2009-06-15 Thread Quincey Morris
On Jun 15, 2009, at 06:43, Sebastian Celis wrote: I believe I found my issue. In my SCBook class I was overriding didChangeValueForKey:withSetMutation:usingObjects: so that I could store an NSString containing a comma-separated list of tags associated with the book. Apparently this is a very bad

Re: Open a file when Application launch

2009-06-15 Thread Greg Guerin
rethish wrote: I created a plist file to launch my application at the scheduled time and and its working well. But I need to load the saved project file, when the application launches. How can I do it? What are the procedures to do it? This isn't a Cocoa question. Example of a shell co

Re: advice on background process

2009-06-15 Thread Rick C.
thank you both for the input. yes i just need leopard and later support. i will look into your suggestions and post back after i've had some time to work on it. thanks again for pointing me in the right direction. rick From: Jerry Krinock To: cocoa-dev

Font Panel and storing font user default

2009-06-15 Thread Stuart Malin
I would like for my app to enable the user to set a user default for a Font to be used in a certain part of the application. I have a preferences panel, and within that am able to open the NSFontPanel. However, I can't figure out how to capture the setting that is made: must I actually have

Re: Core Data, to-many relationships, and object graph consistency

2009-06-15 Thread Sebastian Celis
On Mon, Jun 15, 2009 at 12:58 PM, Quincey Morris wrote: > > If the comma-separated list is just for display in the user interface, you > could generate it on the fly. Use 'keyPathsForValuesAffectingTagList' (or > whatever) to ensure that the proper KVO notifications get sent when the > underlying b

sdp header generation fails for microsoft word 2008

2009-06-15 Thread Gokul Krishna
Hi, I am trying to use scripting bridge to create some documents using microsoft word 2008 from within my cocoa application. I use the following command to generate the glue code header for word sdef /Applications/Microsoft\ Office\ 2008/Microsoft\ Word.app/ | sdp -fh --basename MicrosoftWord s

Re: view drawing differences between Tiger and Leopard ?

2009-06-15 Thread vinai
Hi All, This did not seem to help the issue with my software running under Tiger. If I have to provide back compatibility support, I'll look into another view type and see if that works ... cheers vinai --- On Fri, 6/12/09, vinai wrote: >> This was a problem with NSImageView on Tiger. My wor

Re: Adding actions to undo manager

2009-06-15 Thread Ryan Joseph
On Jun 15, 2009, at 10:16 PM, I. Savant wrote: Thanks. What a challenge just for some basic undo support, there really should be something simpler than this. There is, and it's already been suggested. If you want higher-level functionality, use the higher-level facilities of the text sy

Re: Adding actions to undo manager

2009-06-15 Thread Kyle Sluder
On Mon, Jun 15, 2009 at 6:18 PM, Ryan Joseph wrote: > I'm not sure I follow you. How do I know the user wants to undo and that it > was in response to my change of the NSTextStorage? It seems like one way or > another I need to keep a stack of changes with information on what operation > they perfo

Re: Adding actions to undo manager

2009-06-15 Thread Ryan Joseph
On Jun 16, 2009, at 8:34 AM, Kyle Sluder wrote: On Mon, Jun 15, 2009 at 6:18 PM, Ryan Joseph> wrote: I'm not sure I follow you. How do I know the user wants to undo and that it was in response to my change of the NSTextStorage? It seems like one way or another I need to keep a stack of chang

Re: Adding actions to undo manager

2009-06-15 Thread Kyle Sluder
I don't know where your -doCustomThing: method lives, what it does, or how it's invoked. All I know is that it manipulated an NSTextStorage. In NSTextView land, the topmost methods that manipulate text storages are things like -cut: or -insertText:. They know what undo actions to register with t

[Q] NSPopupButton: always show entire menu

2009-06-15 Thread Eric Gorr
I have a popup button on a NSPanel with several items in it. When the NSPanel is close enough to the bottom of the screen, the menu pops up above the control and all of the menu items appear. If the NSPanel is far enough away from the bottom of the screen, the menu pops up below the control

Re: Serial port access from C / Objective C

2009-06-15 Thread Vansickle, Greg
I'm trying to communicate with a Photo Research Spectral photometer via USB. The device responds to simple ascii commands via a terminal program. I have no problem accessing this via the screen command from Terminal. I need to get to the same capability from a Cocoa project. >From terminal I'

CFAttributedStringGetMutableString returning null value

2009-06-15 Thread Travis Kirton
I have a method, where I need to append to a MutableAttributedString Here is the method... - (void)appendStringFromSelf:(CFMutableAttributedStringRef)theString with:( CFIndex)numberOfGlyphs { CFMutableStringRef mutableString = CFAttributedStringGetMutableString (theString); CFAttributedStringRe

get ref to instance from IB

2009-06-15 Thread Paul M
First off, I'm new to IB and cocoa, so these questions should be taken in that context. Also, This is a port of an existing X/C++ app. The internals are tried and true, all I'm doing is adding a new UI. How do I obtain a reference to an object instanciated in IB? I have 2 outline views and 2 in

Re: Serial port access from C / Objective C

2009-06-15 Thread Andrew Farmer
On 15 Jun 2009, at 15:10, Vansickle, Greg wrote: With the write / read in place, although the write appears to work (numbytes returns 5), the photometer does not respond (I get no "REMOTE" indication on the instrument panel. The subsequent read fails (returns -1). This indicates that an e

Any Good Core Animation Tutorials?

2009-06-15 Thread Chunk 1978
does anyone know off hand any good online tutorials using Core Animation? ideally, i'd like to see animation grouping, so one single method calling a group that rotates (with specifically set anchor point), and moves from one origin to another. i'm pretty sure i can figure the rest out on my own

Re: get ref to instance from IB

2009-06-15 Thread Graham Cox
On 16/06/2009, at 1:55 PM, Paul M wrote: First off, I'm new to IB and cocoa, so these questions should be taken in that context. Also, This is a port of an existing X/C++ app. The internals are tried and true, all I'm doing is adding a new UI. How do I obtain a reference to an object insta

Re: get ref to instance from IB

2009-06-15 Thread Graham Cox
On 16/06/2009, at 2:28 PM, Graham Cox wrote: This seems horribly inefficient to me, I have thousands of items in my data trees. Just to say something about this also - the outline view will only ask for as many items as it needs to actually display. So it need not be inefficient unless y

Re: Any Good Core Animation Tutorials?

2009-06-15 Thread Kiel Gillard
Bill Dudney's Core Animation book is the best, high quality and inexpensive resource for any Core Animation developer . Matt Gallagher's four part Core Animation powered Asteroids tutorials are pretty good, to

Drawing selection handles

2009-06-15 Thread Mahaboob
Hi, I can apply filter effects to all the selected graphics in my canvas using CIFilter class. It is working fine but the selection handles remain in the same position because I'm not setting the bounds of the graphics after applying the filter to it. Now I need to draw the selection handles in

Re: Open a file when Application launch

2009-06-15 Thread Graham Cox
On 16/06/2009, at 4:09 AM, Greg Guerin wrote: rethish wrote: I created a plist file to launch my application at the scheduled time and and its working well. But I need to load the saved project file, when the application launches. How can I do it? What are the procedures to do it? Th

Re: get ref to instance from IB

2009-06-15 Thread Ken Thomases
On Jun 15, 2009, at 11:28 PM, Graham Cox wrote: On 16/06/2009, at 1:55 PM, Paul M wrote: Also: do I need to track and clean up all these wrapper instanes? I'm assuming I dont - I hope I dont otherwise it'll be a complete nightmare. You need to follow normal, standard memory management and

Re: get ref to instance from IB

2009-06-15 Thread Graham Cox
On 16/06/2009, at 4:00 PM, Ken Thomases wrote: Actually, I believe a data source has stricter requirements on it than merely following the memory management rules. From

Re: Font Panel and storing font user default

2009-06-15 Thread Stuart Malin
On Jun 15, 2009, at 6:31 PM, Stuart Malin wrote: I am replying to my own posting with updated info, for the archives... I would like for my app to enable the user to set a user default for a Font to be used in a certain part of the application. I have a preferences panel, and within that am ab