Re: Live updating NSPredicateEditorRowTemplate?

2008-12-11 Thread Peter Ammon
This (terrible) message usually means that one of your templates contains an empty popup button, which is not allowed. -Peter On Dec 10, 2008, at 6:54 PM, Guy Umbright wrote: As I mentioned, I can get new rows to add with an updated list via the code attached to the OP. The problem is that

Re: CoreData -- addPersistentStoreWithType crashing [solved]

2008-12-11 Thread Ben Trumbull
This was exactly the problem. It should be in the CoreData docs, or better yet caught by the MOM compiler (I suppose GCC/LLVM can't really catch this sort of thing since these are properly formed ObjC classes). Anyway, I spent a ton of time debugging this for it really just being a syntax erro

Re: Update to xcode 3.1. copystrings failing, returning error code 71?

2008-12-11 Thread aaron smith
ah, I found it. was this (http://www.digitalsanctum.com/2008/10/04/xcode-cant-exec-developerlibraryxcodeplug-inscorebuildtasksxcplugincontentsresourcescopystrings-no-such-file-or-directory/) On Wed, Dec 10, 2008 at 11:46 PM, aaron smith <[EMAIL PROTECTED]> wrote: > Hey All, I just updated to xcode

AddressBook Framework, adding multiple records

2008-12-11 Thread Alexander Reichstadt
Hi, using the AddressBook framework to add new records causes a console log saying that there is already one instance running of AddressBookSync. The entries I am adding do get added though and they look ok. Is there some way to avoid this or is this a bug? This is on 10.5.x Thank you.

Issue with the preference window

2008-12-11 Thread Arnab Ganguly
Hi All, I am trying out for the preference window.It is a simple app, and under the main menu when I click on the preference it shows the preference menu popup. But when I quit the preference window my app seemed to getting hang.I am not able to quit the application and also the main menu also beco

Re: PAM module

2008-12-11 Thread Jean-Daniel Dupas
Is PAM a Cocoa Project ? As we are on cocoa-dev, I assume it's one, isn't it ? If not, you can try to post your question on a more appropriate list, like darwin-dev Le 10 déc. 08 à 16:30, Macarov Anatoli a écrit : How to compile a PAM module? Where to download libpam-dev or files pam_appl

Re: Wizard development on Mac

2008-12-11 Thread Ronny Reichmann
Go to Apps > Utilities > Airport Assistant. Open the package and look at one of the Nibs in Resources to see how this is done and has to looke like. Hi, I have a MS Windows based Application Wizard written in C#. It is a typical Next-Next-Finish types Wizard. I want to develop a simila

NSKeyedArchiever and XML Format

2008-12-11 Thread Patrick Mau
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' in binary format, using: [NSKeyedArchiver arch

Re: NSOutlineView problem with Text cells.

2008-12-11 Thread rajesh
On Dec 10, 2008, at 6:09 PM, Arun wrote: Hi I have an App in which i use NSOutlineView in the left hand side for Navigational controls. The Root and child's have text cells. I am have changed the font size for the texts in the text cells. are these cells customized ? I mean , Is there any

Re: NSArrayController, NSPopupMenu, defaults and arrangedObjects

2008-12-11 Thread Steven Hamilton
Great stuff. Thanks Guys. What I've done is register as an observer of the arrangedObjects keypath in my windowDidLoad method. Then when it changes I set the correct selectedIncomeEnvelope and remove the observer. Job done. On 09/12/2008, at 9:51 PM, Volker in Lists wrote: Hi Steven, as

Safari Download Security Alerts

2008-12-11 Thread Dave
Hi All, I have an application that is downloaded from the web by Safari. When the user double-clicks on the .dmg file to open the a Warning Dialog is displayed. My question is, is there anyway of stopping the dialog from appearing? My boss doesn't like it and wants me to look into ways of

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

2008-12-11 Thread Ben Trumbull
Consultant.interestingEmployees -- to-many relationship does not have an inverse: this is an advanced setting (no object can be in multiple destinations for a specific relationship) This error doesn't make sense to me. Is it trying to say an object can only "belong" to one to-many relationship?

Re: Safari Download Security Alerts

2008-12-11 Thread rajesh
As far as I know, even the "Apple" supplied applications prompts user and annoy him with the warning It's more of a security check from OS end. Would be great to know if it can be bypassed... On Dec 11, 2008, at 11:53 AM, Dave wrote: Hi All, I have an application that is downloade

Re: Safari Download Security Alerts

2008-12-11 Thread Andrew Farmer
On 11 Dec 08, at 02:53, Dave wrote: I have an application that is downloaded from the web by Safari. When the user double-clicks on the .dmg file to open the a Warning Dialog is displayed. My question is, is there anyway of stopping the dialog from appearing? My boss doesn't like it and want

Re: Safari Download Security Alerts

2008-12-11 Thread Jeremy Pereira
On 11 Dec 2008, at 10:53, Dave wrote: Hi All, I have an application that is downloaded from the web by Safari. When the user double-clicks on the .dmg file to open the a Warning Dialog is displayed. My question is, is there anyway of stopping the dialog from appearing? My boss doesn't l

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

2008-12-11 Thread Chunk 1978
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, but it starts at 00 for the hours and minutes... -=

Re: Safari Download Security Alerts

2008-12-11 Thread Dave
Hi , I did that already! I 99% suspected this would be the answer but had to make the effort to find out. Thanks a lot, All the Best Dave On 11 Dec 2008, at 12:08, Jeremy Pereira wrote: On 11 Dec 2008, at 10:53, Dave wrote: Hi All, I have an application that is downloaded from the web

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

2008-12-11 Thread Shraddha Karwan
Hi,I am a newbie in Cocoa application development on Mac OS X 10.5.4. I just want to launch a new Window when a button of my main window is clicked. I am absolutely not able to find a good tutorial to begin with. Also there is no example named "SimpleMultiWindow" in the /Developer/Examples folder.

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

2008-12-11 Thread rajesh
May be its good to follow a printed material first. This link got basic some stuff in it, http://developer.apple.com/documentation/cocoa/conceptual/objctutorial/01Introduction/chapter_1_section_1.html ~Rajesh On Dec 11, 2008, at 2:02 PM, Shraddha Karwan wrote: Hi,I am a newbie in Cocoa applica

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

2008-12-11 Thread Shraddha Karwan
Thanks for the reply but I have gone through this tutorial, it doesn't talk about advanced stuff of adding multiple windows and the nib files, file owners etc in detail. On Thu, Dec 11, 2008 at 6:48 PM, rajesh <[EMAIL PROTECTED]> wrote: > May be its good to follow a printed material first. > This

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

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

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,

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

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

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: 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

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: 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

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: 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

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 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

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: 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 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

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

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

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

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 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: 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: 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

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: 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

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: 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: 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 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: 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: 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

[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: 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

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 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 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 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 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: [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 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: 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 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

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: 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

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: 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: 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 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

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

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

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

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: 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 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 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 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 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 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: 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: 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: 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: 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: 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: 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: 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: 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 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: 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

[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: 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

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

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 _

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

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: 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: 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: 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,

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: 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

  1   2   >