Looking for info on creating Plugins/Modules

2008-12-11 Thread Tom Jones
Hello, I'm hoping someone could point me in the right direction. Where would I read up on how to create modules or plugins for a Cocoa application? I'm not even sure I'm asking the right question :-) Here is kind of the idea. I would like to write a "plugin" which is loaded when the app la

Re: Core Data warning: to-many relation does not have an inverse

2008-12-11 Thread Ben Trumbull
I hope that by "corrupt data" in the case of a many-to-many relationship, you mean that if one isn't careful they may end up with a row that links a foreign key from one table to a non-existent key in another. I mean no inverse relationships never have a join table, so trying to pretend it's a

Re: Resizing an image

2008-12-11 Thread Ian was here
Here's a simple method for resizing. I made it a category of NSImage. - (NSImage *)resizedImageForSize:(NSSize)size { NSImage*resizedImage = [[[NSImage alloc] initWithSize:size] autorelease]; [resizedImage lockFocus]; [self drawInRect:[resizedImage bounds] fromRect:[self bounds] opera

Re: Blunt edges to Window

2008-12-11 Thread Rob Keniger
On 12/12/2008, at 3:35 PM, Arun wrote: So this means, it only works in Leopard... not in Tiger? Is there any way in which it can work both on tiger and leopard? No, on Tiger you need to do some hackery to get this to work, it's not natively supported. Have a look at Matt Gemmell's Tunes

Re: Blunt edges to Window

2008-12-11 Thread Arun
Thanks, So this means, it only works in Leopard... not in Tiger? Is there any way in which it can work both on tiger and leopard? -Arun On Fri, Dec 12, 2008 at 10:49 AM, Rob Keniger wrote: > > On 12/12/2008, at 3:17 PM, Rob Keniger wrote: > > You're probably looking for - >> (void)setContentBo

Re: Blunt edges to Window

2008-12-11 Thread Rob Keniger
On 12/12/2008, at 3:17 PM, Rob Keniger wrote: You're probably looking for - (void)setContentBorderThickness: (CGFloat)borderThickness forEdge:(NSRectEdge)edge I forgot to mention that this is straight from the 10.5 AppKit release notes: http://developer.apple.com/releasenotes/Cocoa/AppKi

Re: Blunt edges to Window

2008-12-11 Thread Rob Keniger
On 12/12/2008, at 3:04 PM, Arun wrote: Went through the documentation and could not find ant API... Any idea about the name of the API? You're probably looking for - (void)setContentBorderThickness: (CGFloat)borderThickness forEdge:(NSRectEdge)edge Try subclassing NSWindow and calling [s

Re: Announce the time every 30 minutes

2008-12-11 Thread Mr. Gecko
I am working on an application that would most likely be on all the time because it does lots of useful things, the time announcement would just be an add on. On Dec 11, 2008, at 6:07 PM, M Pulis wrote: If you don't "need" this function "in" your app, or don't want to have your app running

Re: Blunt edges to Window

2008-12-11 Thread Arun
Hi.. Went through the documentation and could not find ant API... Any idea about the name of the API? -Arun On Thu, Dec 11, 2008 at 11:56 PM, Stéphane Sudre wrote: > > On Dec 11, 2008, at 7:12 PM, Arun wrote: > > The example i have in my mind is Finder, iTunes etc. >> These have a blunt corne

Re: NSKeyedArchiever and XML Format

2008-12-11 Thread Graham Cox
On 12 Dec 2008, at 2:19 pm, Martin Wierschin wrote: That actually would not have helped, because it's an instance method. The whole problem to begin with was that there wasn't any clear way for a manually constructed instance of NSKeyedUnarchiver to decode a file previously saved using the

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Michael Ash
On Thu, Dec 11, 2008 at 2:00 PM, Shayne Wissler wrote: > On Thu, Dec 11, 2008 at 11:55 AM, Eric Schlegel wrote: > >>> Can you perhaps suggest a book from which I would have learned this >>> and other architectural nuances of systems programming on the Mac? >> >> I can't, partly because I haven't

Re: NSKeyedArchiever and XML Format

2008-12-11 Thread Martin Wierschin
The problem I had was that I needed to use -[NSUnarchiver decodeClassName:asClassName:] for unarchiving a file previously encoded using the convenience method. Certainly it's possible to use the class method +[NSUnarchiver decodeClassName:asClassName:], but it seems silly to pollute the glo

Re: NSKeyedArchiever and XML Format

2008-12-11 Thread Graham Cox
On 12 Dec 2008, at 1:32 pm, Martin Wierschin wrote: The problem I had was that I needed to use -[NSUnarchiver decodeClassName:asClassName:] for unarchiving a file previously encoded using the convenience method. Certainly it's possible to use the class method +[NSUnarchiver decodeClassName

Re: NSKeyedArchiever and XML Format

2008-12-11 Thread Martin Wierschin
[a encodeObject:p forKey:@"root"]; Does using: [a encodeRootObject:p]; instead of the line above make it work as expected? A good idea, but IIRC that did not work. In fact, I think it produced an archive that silently failed to be read back by the stock +[NSKeyedUnarchiver unarchiveObject

Re: NSKeyedArchiever and XML Format

2008-12-11 Thread Nathan Vander Wilt
On Dec 11, 2008, at 5:34 PM, Martin Wierschin wrote: [a encodeObject:p forKey:@"root"]; Does using: [a encodeRootObject:p]; instead of the line above make it work as expected? A good idea, but IIRC that did not work. In fact, I think it produced an archive that silently failed to be read

Re: NSKeyedArchiever and XML Format

2008-12-11 Thread Martin Wierschin
[a encodeObject:p forKey:@"root"]; Does using: [a encodeRootObject:p]; instead of the line above make it work as expected? A good idea, but IIRC that did not work. In fact, I think it produced an archive that silently failed to be read back by the stock + [NSKeyedUnarchiver unarchiveObject

Re: NSKeyedArchiever and XML Format

2008-12-11 Thread Nathan Vander Wilt
On Dec 11, 2008, at 1:01 AM, Patrick Mau wrote: Good morning For the last day I have pulled my hair over NSKeyedArchiever and friends to load and save small data objects. I mainly use this feature for debugging, so the output format is set to XML. Normally, one would write an object 'p'

Re: Text layout responsibility

2008-12-11 Thread Martin Wierschin
Hello Rimas, I am trying to implement editable text view which changes text position (paragraphs positions, to be exact) according to the some text attributes. I know, that NSTextContainer is responsible for line rects calculation when text should be placed in known shape. Is it responsib

Re: NSKeyedArchiever and XML Format

2008-12-11 Thread Martin Wierschin
Hi Patrick, The property list editor shows the root object key as "Root", but in fact the key is saved as 'root'. I was unable to unarchieve my objects using 'unarchiveObjectWithFile' until I finally created a hex-dump and figured out that the only difference between the files was 'root'

Re: Help reading cocoa docs - finding info about return objects and autorelease / memory management.

2008-12-11 Thread aaron smith
Thanks Wyatt. On Thu, Dec 11, 2008 at 4:28 PM, Wyatt Webb wrote: > Have a look at the Memory Management Programming Guide for Cocoa. Especially > the section on Object Ownership and Disposal. The trick is in the name of > the methods you call to get the reference. Generally, methods with "alloc",

Re: Help reading cocoa docs - finding info about return objects and autorelease / memory management.

2008-12-11 Thread Wyatt Webb
Have a look at the Memory Management Programming Guide for Cocoa. Especially the section on Object Ownership and Disposal. The trick is in the name of the methods you call to get the reference. Generally, methods with "alloc", "new", or "copy" in the name are making you responsible for rele

Help reading cocoa docs - finding info about return objects and autorelease / memory management.

2008-12-11 Thread aaron smith
Hey All, Quick question, what is the best way to determine what kind of cleanup I need to do with objects that were returned from other objects' methods, or class methods. For example, the NSTextField has a method called (NSString *)stringValue - which returns a string of the value in the text bo

Re: Core Data warning: to-many relation does not have an inverse

2008-12-11 Thread Nathan Vander Wilt
Sorry if this ends up showing twice, but the original message has been moderator-queued for length since early this morning. Being several steps behind in even *asking* Core Data questions has been frustrating me all day, as I try to press on in no less ignorance than yesterday. On Dec 11,

Re: Announce the time every 30 minutes

2008-12-11 Thread M Pulis
If you don't "need" this function "in" your app, or don't want to have your app running all the time just to do the chime, you could setup system preferences to let OSX do it for you. There may even be a command line that can be executed under control of your app. Gary On Dec 11, 2008, at

Re: Announce the time every 30 minutes

2008-12-11 Thread Andrew Farmer
On 11 Dec 08, at 15:14, Mr. Gecko wrote: Hell I'm trying to find out how to announce the time every 30 minutes, I'm guessing I have to do it with NSTimer and and than have the time interval set to NSDate interval from now to the time which is like 7:30 or 8:00. but I'm not sure. That's cor

Re: Drag & Drop: PREVENT file move

2008-12-11 Thread Nathan Vander Wilt
On Dec 11, 2008, at 3:11 PM, Houdah - ML Pierre Bernard wrote: Hi! My application shows a list of files in a table view. I have implemented drag and drop so that users may drag files from the list. I could envision them dragging the files onto other applications for viewing or dragging th

Re: Is it useful to make a 64 bit app? [Was]: How can users check if their mac is 64-bit-capable?

2008-12-11 Thread Clark Cox
On Thu, Dec 11, 2008 at 1:50 PM, Jesper Storm Bache wrote: >> Yes. Even if you're not going to go 64-bit now, I would strongly >> recommend you at least get your code ready for it, because there will >> be a day when the i386 architecture gets deprecated. That means >> switching ints to NSIntegers

Announce the time every 30 minutes

2008-12-11 Thread Mr. Gecko
Hell I'm trying to find out how to announce the time every 30 minutes, I'm guessing I have to do it with NSTimer and and than have the time interval set to NSDate interval from now to the time which is like 7:30 or 8:00. but I'm not sure. Thanks for the help, Mr. Gecko _

Drag & Drop: PREVENT file move

2008-12-11 Thread Houdah - ML Pierre Bernard
Hi! My application shows a list of files in a table view. I have implemented drag and drop so that users may drag files from the list. I could envision them dragging the files onto other applications for viewing or dragging them on a removable media to create archive copies. The problem

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

2008-12-11 Thread Chunk 1978
thanks a lot Ashley... works great! On Thu, Dec 11, 2008 at 2:35 PM, Ashley Clark wrote: > Sorry forgot to mention you'll probably have to cast things to integer for > modulo to work. My compiler flags make me at least. > > Ashley > > > On Dec 11, 2008, at 1:25 PM, Ashley Clark wrote: > >> On Dec

[ANN] AppKiDo{-for-iPhone} 0.982

2008-12-11 Thread Andy Lee
Release notes to come later -- gotta run to CocoaHeads... http://homepage.mac.com/aglee/downloads/AppKiDo-0.982.tgz http://homepage.mac.com/aglee/downloads/AppKiDo-for-iPhone-0.982.tgz Same source code for both: http://homepage.mac.com/aglee/downloads/AppKiDo-src-0.982.tgz --Andy

Re: Arggg...overrelease in table view cell, but where?

2008-12-11 Thread Stuart Rogers
I have implemented -copyWithZone in my NSTFC subclass as such: - (id)copyWithZone:(NSZone *)zone { MyTableCell*copy = [super copyWithZone:zone]; copy.cellObject = [self.cellObject copy]; copy.gridController = [self.ViewController copy]; return copy; } NSCells use NSCopyObject to do t

Re: Arggg...overrelease in table view cell, but where?

2008-12-11 Thread j o a r
On Dec 11, 2008, at 2:17 PM, Markus Spoettl wrote: So it stops the debugger and shows you the call stack *at the exact time it's being called* and gives to an opportunity to walk back the call stack before continuing? How so? Please do tell me how to do that. Sure does! (obviously, aside

Re: efficiency of Xquery vs NSXMLElement attributes

2008-12-11 Thread Kieren Eaton
Thanks Mike On 12/12/2008, at 2:24 AM, Michael Ash wrote: On Thu, Dec 11, 2008 at 1:00 AM, Kieren Eaton wrote: Hi All I know there are always several ways to do things and have come across something which puzzles me as to the efficiency of these 2 ways of getting the same data from an

Re: Arggg...overrelease in table view cell, but where?

2008-12-11 Thread Corbin Dunn
On Dec 11, 2008, at 2:17 PM, Markus Spoettl wrote: On Dec 11, 2008, at 1:56 PM, Corbin Dunn wrote: Don't do that - Use the ObjectAlloc Instrument, it provides this information out of the box. So it stops the debugger and shows you the call stack *at the exact time it's being called* and

Re: Arggg...overrelease in table view cell, but where?

2008-12-11 Thread Markus Spoettl
On Dec 11, 2008, at 1:56 PM, Corbin Dunn wrote: Don't do that - Use the ObjectAlloc Instrument, it provides this information out of the box. So it stops the debugger and shows you the call stack *at the exact time it's being called* and gives to an opportunity to walk back the call stack

Re: Resizing an image

2008-12-11 Thread Glenn Bloom
Steve, thank you - I just tested your recommendation - it appears to work well. Doug, I just got your recommendation and will look into CICrop and CILanczosScaleTransform, and CGImageRef documentation on creating images of a particular size. I'm in fact about to run out to a Cocoaheads meeting, s

Re: Is it useful to make a 64 bit app? [Was]: How can users check if their mac is 64-bit-capable?

2008-12-11 Thread Nick Zitzmann
On Dec 11, 2008, at 2:50 PM, Jesper Storm Bache wrote: A potential source of confusing is that NSInteger in 64 bit is not an int, but a long. This means that NSInteger is 64 bit on 64 bit systems. A general switch from int to NSInteger is therefore probably not appropriate, but a switch to

Re: Arggg...overrelease in table view cell, but where?

2008-12-11 Thread Corbin Dunn
On Dec 11, 2008, at 1:30 PM, Markus Spoettl wrote: On Dec 11, 2008, at 1:11 PM, j o a r wrote: Overwrite GFController's -release and -autorelease, simply calling [super release] and [super autorelease] (ensure you get the signatures exactly right). Set a breakpoint in both and debug the a

Re: Resizing an image

2008-12-11 Thread douglas welton
Hi Glenn, Your answers a little bit non-specific, so at best I will have to give you a non-specific response. Two suggestions: 1) Core Image is your friend! In your case, CICrop and CILanczosScaleTransform may be of some help. 2) CGImageRef is your other friend! In particular, see th

Re: Is it useful to make a 64 bit app? [Was]: How can users check if their mac is 64-bit-capable?

2008-12-11 Thread Jesper Storm Bache
Yes. Even if you're not going to go 64-bit now, I would strongly recommend you at least get your code ready for it, because there will be a day when the i386 architecture gets deprecated. That means switching ints to NSIntegers, getting rid of FSSpec, etc. Minor point to be aware of when you go

Re: Arggg...overrelease in table view cell, but where?

2008-12-11 Thread Markus Spoettl
On Dec 11, 2008, at 1:11 PM, j o a r wrote: Overwrite GFController's -release and -autorelease, simply calling [super release] and [super autorelease] (ensure you get the signatures exactly right). Set a breakpoint in both and debug the app. When the debugger hits the breakpoints you will se

Re: Arggg...overrelease in table view cell, but where?

2008-12-11 Thread j o a r
On Dec 11, 2008, at 4:06 PM, Benjamin Stiglitz wrote: NSCells use NSCopyObject to do their copies, which ends up setting the values of cellObject and gridController in your copies, but not retaining them. You need to nil them out before setting the values in your properties. This is a long

Re: Arggg...overrelease in table view cell, but where?

2008-12-11 Thread mmalc Crawford
On Dec 11, 2008, at 1:06 PM, Benjamin Stiglitz wrote: NSCells use NSCopyObject to do their copies, which ends up setting the values of cellObject and gridController in your copies, but not retaining them. You need to nil them out before setting the values in your properties.

Re: Arggg...overrelease in table view cell, but where?

2008-12-11 Thread j o a r
On Dec 11, 2008, at 1:02 PM, Markus Spoettl wrote: Overwrite GFController's -release and -autorelease, simply calling [super release] and [super autorelease] (ensure you get the signatures exactly right). Set a breakpoint in both and debug the app. When the debugger hits the breakpoints yo

Re: Arggg...overrelease in table view cell, but where?

2008-12-11 Thread Benjamin Stiglitz
I have implemented -copyWithZone in my NSTFC subclass as such: - (id)copyWithZone:(NSZone *)zone { MyTableCell *copy = [super copyWithZone:zone]; copy.cellObject = [self.cellObject copy]; copy.gridController = [self.ViewController copy]; return copy; } NSCells use NSCopyObject to do

Re: Arggg...overrelease in table view cell, but where?

2008-12-11 Thread Markus Spoettl
On Dec 11, 2008, at 12:24 PM, Randall Meadows wrote: -[GFController release]: message sent to deallocated instance 0x16d97890 Overwrite GFController's -release and -autorelease, simply calling [super release] and [super autorelease] (ensure you get the signatures exactly right). Set a bre

Re: Arggg...overrelease in table view cell, but where?

2008-12-11 Thread Randall Meadows
Of course, right after posting I figured something out. If I return a retained object from -tableView:objectValueForTableColumn:row:, all the crashes go away. I took out all my extra retains I added in, and it's still behaving. But now I'm confused. Based on the standard memory managemen

Re: Is it useful to make a 64 bit app? [Was]: How can users check if their mac is 64-bit-capable?

2008-12-11 Thread Nick Zitzmann
On Dec 11, 2008, at 1:15 PM, Nick Zitzmann wrote: But there are a few drawbacks: I missed a spot: 5. Good luck trying to debug 64-bit apps. As of Xcode 3.1.2, the debugger often fails to respond to commands correctly when a 64-bit app is loaded, Shark doesn't work correctly with them, a

Arggg...overrelease in table view cell, but where?

2008-12-11 Thread Randall Meadows
Still fighting with the table view custom cell...sorry for the length of this, I'm trying to include as much info as I can to help you help me figure this out. I have subclassed NSTextFieldCell (NSTFC) so that I can do custom drawing in my table cells (basically multiple text strings within

Text layout responsibility

2008-12-11 Thread Rimas
Hello list, I have performed quick search through the list and couldn't find answer to my question. I am trying to implement editable text view which changes text position (paragraphs positions, to be exact) according to the some text attributes. I know, that NSTextContainer is responsible for l

Re: Is it useful to make a 64 bit app? [Was]: How can users check if their mac is 64-bit-capable?

2008-12-11 Thread Nick Zitzmann
On Dec 11, 2008, at 12:16 PM, Gustavo Pizano wrote: if Im starting a new app (small one), should I build it for a 64 bit architecture or no?, if so what should I take care of?, It's a mixed bag. We've released one 64-bit app (iClipboard), so I can speak from some experience here. The ben

RE: How to detect a paste request for file copy/paste?

2008-12-11 Thread Ling Li
Thanks for help. I tried that but still not work. Actually what you said is right with DnD. In my code the promised drag works perfectly well, but this is for file copy/paste :) What is want is that if user click 'paste' in Finder, my app should get notice with destination directory and start fi

Re: Is it useful to make a 64 bit app? [Was]: How can users check if their mac is 64-bit-capable?

2008-12-11 Thread Sherm Pendley
On Dec 11, 2008, at 2:16 PM, Gustavo Pizano wrote: In an apple doc I read that mos of leopard app doesn't need to convert to 64 bit architecture, but later on the document its says something like, that in the future the apps should take advantage of the new 64 bit api and frameworks, or th

Re: Resizing an image

2008-12-11 Thread Steve Christensen
On Dec 11, 2008, at 5:43 AM, Glenn Bloom wrote: Can anyone recommend a best practice for resizing an image to reduce its size in terms of both bytes and visible dimensions, retaining the new smaller image and eliminating the original from memory? In how I go about this now, I am concerned

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

2008-12-11 Thread Ashley Clark
On Dec 11, 2008, at 6:32 AM, Chunk 1978 wrote: thanks everyone for the answers. i agree that Ashley's method is far more readable than using modulus calculations, so i'll look into that further as i can't seem to get it working yet. currently, i have this working using modulus calculations, bu

Is it useful to make a 64 bit app? [Was]: How can users check if their mac is 64-bit-capable?

2008-12-11 Thread Gustavo Pizano
Well not that you mentioned, I was reading about the 64bit changes that OS X and Cocoa api has, and how to convert my current 32 bit app to 64 bit app. In an apple doc I read that mos of leopard app doesn't need to convert to 64 bit architecture, but later on the document its says something

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Shayne Wissler
On Thu, Dec 11, 2008 at 12:03 PM, Sherm Pendley wrote: > On Dec 11, 2008, at 1:42 PM, Shayne Wissler wrote: > >> Just like an X application would work on Linux. I >> don't want for it to be required to have a .app directory with plists >> or nibs or anything other than just my binary. > > If you w

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Sherm Pendley
On Dec 11, 2008, at 1:42 PM, Shayne Wissler wrote: Just like an X application would work on Linux. I don't want for it to be required to have a .app directory with plists or nibs or anything other than just my binary. If you want something that looks and acts like an X11 app, why bother port

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Shayne Wissler
On Thu, Dec 11, 2008 at 11:55 AM, Eric Schlegel wrote: >> Can you perhaps suggest a book from which I would have learned this >> and other architectural nuances of systems programming on the Mac? > > I can't, partly because I haven't done an exhaustive survey of all > programming books on Mac OS

Re: [SOLVED] Re: NSTextField setStringValue not updating properly

2008-12-11 Thread mmalc Crawford
For the benefit of others with the same issue: On Dec 10, 2008, at 8:31 AM, jmun...@his.com wrote: Anytime the value for the text field needs to change, I call [NSTextField setStringValue:(NSString *)aString]. After searching through the message archives, I either find bound fields or someth

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Eric Schlegel
On Dec 11, 2008, at 10:35 AM, Shayne Wissler wrote: Yes, that is exactly what I want, and your solution worked brilliantly! Thanks! Great! Can you perhaps suggest a book from which I would have learned this and other architectural nuances of systems programming on the Mac? I can't, partl

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Sherm Pendley
On Dec 11, 2008, at 1:35 PM, Shayne Wissler wrote: On Thu, Dec 11, 2008 at 11:18 AM, Eric Schlegel wrote: Jumping in late here... It sounds like what you want to create is just a flat-file binary that does not use the bundle hierarchy that is typical for a Mac OS X app. I.e., you want yo

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Jason Stephenson
Shayne Wissler wrote: I've got an application that isn't specifically for the Mac, and I want the same standard user-experience whether they are on the Mac or on Windows or on Linux. I want them to be able to run this program from the command line by directly using the binary (without calling "o

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Bruce Martin
If it has an interface then I would suggest following the HIG. However it sounds like you have a tool for the commandline and there is an option to create that in Xcode, AFAIK. Bruce Martin The Martin Solution br...@martinsolution.com http://www.martinsolution.com http://externals.martinsolut

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Shayne Wissler
Hi Bill, I've got an application that isn't specifically for the Mac, and I want the same standard user-experience whether they are on the Mac or on Windows or on Linux. I want them to be able to run this program from the command line by directly using the binary (without calling "open"), to have

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Shayne Wissler
On Thu, Dec 11, 2008 at 11:18 AM, Eric Schlegel wrote: > Jumping in late here... > > It sounds like what you want to create is just a flat-file binary that does > not use the bundle hierarchy that is typical for a Mac OS X app. I.e., you > want your app to just be a single file "MyApp" rather than

[SOLVED] Re: NSTextField setStringValue not updating properly

2008-12-11 Thread jmunson
I am posting this for the benefit of those who are coming into this area as new folk. Thanks to anyone who provided help. This is a short description of how I solved my issue and not meant to be a tutorial of any kind. After staring at it for multitudes of hours, I decided a different a

Re: Blunt edges to Window

2008-12-11 Thread Stéphane Sudre
On Dec 11, 2008, at 7:12 PM, Arun wrote: The example i have in my mind is Finder, iTunes etc. These have a blunt corned window. There's an API in the AppKit (NSWindow) to have rounded or square corners. Is this what you're referring to? ___ Co

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Bill Bumgarner
On Dec 11, 2008, at 10:07 AM, Shayne Wissler wrote: Thanks for all the varied answers! It sounds like no one actually knows architecturally what is going on here or why! Is there perhaps some "dissonance" between the UNIX design aspects and the Apple design aspects of OSX? Actually I'd wage

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Eric Schlegel
Jumping in late here... It sounds like what you want to create is just a flat-file binary that does not use the bundle hierarchy that is typical for a Mac OS X app. I.e., you want your app to just be a single file "MyApp" rather than a hierarchy "MyApp.app/Contents/MacOS/MyApp". Is that cor

Re: Blunt edges to Window

2008-12-11 Thread Arun
The example i have in my mind is Finder, iTunes etc. These have a blunt corned window. On Thu, Dec 11, 2008 at 11:35 PM, Volker in Lists <[EMAIL PROTECTED]>wrote: > Hi, > > do you have an example? A good source for information might be Apple Guide > to the UI or HIG -> available through your Xco

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Shayne Wissler
Thanks for all the varied answers! It sounds like no one actually knows architecturally what is going on here or why! Is there perhaps some "dissonance" between the UNIX design aspects and the Apple design aspects of OSX? But it sounds like I can hack my way through given your suggestions, thanks

Re: How can users check if their mac is 64-bit-capable?

2008-12-11 Thread Sherm Pendley
On Dec 11, 2008, at 12:07 PM, Russ wrote: So even better, is there a convenient GUI-based way for a user to check this? I don't see anything in "About this Mac". Actually - yes. "About this Mac" *will* tell you. If it says "G5" or "Core 2", and 10.5.*, it's a 64-bit capable Mac. If it's run

Re: Blunt edges to Window

2008-12-11 Thread Volker in Lists
Hi, do you have an example? A good source for information might be Apple Guide to the UI or HIG -> available through your Xcode installations documentation. Cheers, Volker Am 11.12.2008 um 18:41 schrieb Arun: Hi, How to create a blunt corned window edges? Is there any control which wi

Blunt edges to Window

2008-12-11 Thread Arun
Hi, How to create a blunt corned window edges? Is there any control which will provide the same? any idea? -Arun KA ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Design for showing ridiculously huge number of images in Table View

2008-12-11 Thread Corbin Dunn
On Dec 11, 2008, at 9:21 AM, Jean-Daniel Dupas wrote: Le 11 déc. 08 à 17:55, rajesh a écrit : Hi All, I implemented NStableView which contains few "columns" with NSImageCells , there are huge number of rows ( for the nightmare ) images are requested over the network and hence images are

Re: Design for showing ridiculously huge number of images in Table View

2008-12-11 Thread Corbin Dunn
On Dec 11, 2008, at 8:55 AM, rajesh wrote: Hi All, I implemented NStableView which contains few "columns" with NSImageCells , there are huge number of rows ( for the nightmare ) images are requested over the network and hence images are never readily available. but part of my framework

Re: How can users check if their mac is 64-bit-capable?

2008-12-11 Thread Nick Zitzmann
On Dec 11, 2008, at 10:07 AM, Russ wrote: Is there an official Apple-supplied list of which Macs (PPC and Intel) are capable of running 64-bit applications? No, but I wrote one in a message to this group a while ago. The 64-bit capable Macintoshes are: 1. All Xserves, except for the very

Re: efficiency of Xquery vs NSXMLElement attributes

2008-12-11 Thread Michael Ash
On Thu, Dec 11, 2008 at 1:00 AM, Kieren Eaton <[EMAIL PROTECTED]> wrote: > Hi All > > I know there are always several ways to do things and have come across > something which puzzles me as to > the efficiency of these 2 ways of getting the same data from an NSXMLNode > object. > > for this exercise

Re: How can users check if their mac is 64-bit-capable?

2008-12-11 Thread Jean-Daniel Dupas
Le 11 déc. 08 à 18:07, Russ a écrit : Is there an official Apple-supplied list of which Macs (PPC and Intel) are capable of running 64-bit applications? I need something to refer customers to so they can verify whether their machine is 64- bit capable or not. Obviously I could supply a tin

Re: Design for showing ridiculously huge number of images in Table View

2008-12-11 Thread Jean-Daniel Dupas
Le 11 déc. 08 à 17:55, rajesh a écrit : Hi All, I implemented NStableView which contains few "columns" with NSImageCells , there are huge number of rows ( for the nightmare ) images are requested over the network and hence images are never readily available. but part of my framework in

How can users check if their mac is 64-bit-capable?

2008-12-11 Thread Russ
Is there an official Apple-supplied list of which Macs (PPC and Intel) are capable of running 64-bit applications? I need something to refer customers to so they can verify whether their machine is 64-bit capable or not. Obviously I could supply a tiny app to tell them, but it's a bit pointless

Design for showing ridiculously huge number of images in Table View

2008-12-11 Thread rajesh
Hi All, I implemented NStableView which contains few "columns" with NSImageCells , there are huge number of rows ( for the nightmare ) images are requested over the network and hence images are never readily available. but part of my framework intimates me whenever an image is downloaded

Re: Tracking down issue; Bad call?

2008-12-11 Thread jmunson
Thank you for the reply. For clarification: - (void)awakeFromNib { //... sDefDir = NSHomeDirectory(); [sDefDir retain]; //... } I added the retain per a different response and that cleared up my issue. Knowing about the retain also added some clarity as to how the overal

Re: Tracking down issue; Bad call?

2008-12-11 Thread I. Savant
On Thu, Dec 11, 2008 at 10:20 AM, <[EMAIL PROTECTED]> wrote: > sDefDir is a class member NSString that is set on awakeFromNIB (set to > NSHomeDirectory). I know it has a value because it is used to prior to any > of this stuff and works fine. It is only set in awakeFromNIB and remains > unchange

Re: Tracking down issue; Bad call?

2008-12-11 Thread Andy Lee
On Dec 11, 2008, at 10:20 AM, [EMAIL PROTECTED] wrote: 'Course this leads to me ask WHY is sDefDir invalid??? What happened to it and where did it happen? I don't have any other place in the code that sets sDefDir - only awakeFromNIB. Are you retaining it when you set it? The symptoms sou

Re: Wow - what happened to IB

2008-12-11 Thread Jason Stephenson
Ian H Stewart wrote: I created a new project in xcode, I then got into IB and created my layout - buttons, text fields, etc. connected them all together with actions and defined my outlets, then tried to get the details back into xcode and found out you can no longer sync from IB to xcode, but on

Tracking down issue; Bad call?

2008-12-11 Thread jmunson
Namaste! In my app I have the following (a Save Panel call): [sp beginSheetForDirectory:sDefDir file:@"" modalForWindow:[self window] modalDelegate:self didEndSelector:@selector(didEndSaveFileSheet:

Re: Wow - what happened to IB

2008-12-11 Thread Timothy Reaves
On Dec 11, 2008, at 7:36 AM, Ian H Stewart wrote: OK so it has been a long long time since I did anything in IB. So I started an app like I did at NeXT - 70% of my app is GUI. I created a new project in xcode, I then got into IB and created my layout - buttons, text fields, etc. connected the

Re: how to pass arguments by reference

2008-12-11 Thread glenn andreas
On Dec 10, 2008, at 10:11 AM, Mark Woollard wrote: You can't use passing by reference in C or Objective-C, you can with C++ or Objective-C 2.0, for example the following will compile: // Method using reference - (int)func:(int&)a; Note that references aren't fully supported by the lower

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

2008-12-11 Thread Chunk 1978
sorry, i meant to say: ideally, it would be nice to have that start at 00 59 59 instead of 00 00 59. :) On Thu, Dec 11, 2008 at 7:32 AM, Chunk 1978 <[EMAIL PROTECTED]> wrote: > thanks everyone for the answers. > > i agree that Ashley's method is far more readable than using modulus > calculation

How to enable horizontal resizing of the NSOutline view with a minimum width?

2008-12-11 Thread Arun
Hi How to enable horizontal resizing of the NSOutline view with a minimum width? any idea? Thanks -Arun ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: Multithreading and Mach ports

2008-12-11 Thread Nathan Day
NSPort represents both ends of the communication channel you only create one NSPort. On 11/12/2008, at 4:58 AM, John Love wrote: Reference: http://developer.apple.com/documentation/Cocoa/Conceptual/Multithreading/RunLoopManagement/chapter_6_section_5.html#/ /apple_ref/doc/uid/1057i-CH16

Re: Can't launch a new Window at click of a button

2008-12-11 Thread jmunson
I second the printed material. Search for menu implementations as a way to get started. Also, a book like Hillegass' "Cocoa Programming for Mac OS X Third Edition" is a good place to start. However, for expedience's sake, here's a kick start with but one way to open another window from a

Re: Safari Download Security Alerts

2008-12-11 Thread Peter Blazejewicz
hi Dave, that's not Safari unique feature. That's system-wide component. In your Xcode documentation window type "file quarantine" or navigate to Guides>Security>Security Overview>Security Services #File Quarantine regards, Peter Blazejewicz On Dec 11, 2008, at 11:53 AM, Dave wrote: Hi All,

Re: TIFFRepresentation makes big file!

2008-12-11 Thread Jean-Daniel Dupas
Le 11 déc. 08 à 14:05, Caroline a écrit : Hello all, I have some Questions. 1. I try to write NSImage to file. NSImage *image = [NSImage imageNamed:@"test.png"]; NSBitmapImageRep *imageRep; imageRep = [[NSBitmapImageRep alloc] initWithData:[image TIFFRepresentation]]; NSData *imageData; i

Resizing an image

2008-12-11 Thread Glenn Bloom
Can anyone recommend a best practice for resizing an image to reduce its size in terms of both bytes and visible dimensions, retaining the new smaller image and eliminating the original from memory? In how I go about this now, I am concerned about memory and efficiency. thanks in advance for any

TIFFRepresentation makes big file!

2008-12-11 Thread Caroline
Hello all, I have some Questions. 1. I try to write NSImage to file. NSImage *image = [NSImage imageNamed:@"test.png"]; NSBitmapImageRep *imageRep; imageRep = [[NSBitmapImageRep alloc] initWithData:[image TIFFRepresentation]]; NSData *imageData; imageData = [imageRep representationUsingType:NS

Wow - what happened to IB

2008-12-11 Thread Ian H Stewart
OK so it has been a long long time since I did anything in IB. So I started an app like I did at NeXT - 70% of my app is GUI. I created a new project in xcode, I then got into IB and created my layout - buttons, text fields, etc. connected them all together with actions and defined my outlets, t

  1   2   >