OS X Game Programming

2010-04-07 Thread Pascal Harris
I've never programmed games before, although I've got a fair bit of useful OS X utility software under my belt. I've now had a few ideas that I'd like to implement - and I'm stuck at almost the first hurdle. I've managed to create an OpenGL view (by way of experimentation) and chuck a few grap

Re: Using Core Data ManagedObjectIDs to uniquely name files

2010-04-07 Thread Ken Tabb
Hi Gideon, thanks for taking the time to reply. I see your point, if there were more than 1 store being opened, but only 1 folder location for mugshot files, then assuming that each 1st Employee would have the objectID: x-coredata://.../Employee/p101 ... then if I'm only using the p101 par

Re: OS X Game Programming

2010-04-07 Thread Jean-Daniel Dupas
Most basics OpenGL sample codes on ADC handle keyboard events. For instance, first Google result for "Cocoa OpenGL" http://developer.apple.com/mac/library/samplecode/CocoaGL/Introduction/Intro.html Le 7 avr. 2010 à 09:34, Pascal Harris a écrit : > I've never programmed games before, although I

Re: Alternative Location of Cocoa ID3 Framework??

2010-04-07 Thread patrick machielse
Op 6 apr 2010, om 17:22 heeft cocoa-dev-requ...@lists.apple.com het volgende geschreven: > I've been searching google for a while, and have repeatedly stumbled across > mention of an Objective-C ID3 framework constantly linked to > > http://drewfamily.homemail.com.au/Cocoa_-_ID3Tag_framework.ht

Re: Wondering about that iPad page curling

2010-04-07 Thread Tito Ciuro
How about this example? You can download the source as well: http://www.devx.com/wireless/Article/42476/1763/page/3 -- Tito On Apr 7, 2010, at 1:57 AM, Kiel Gillard wrote: > Can UIViewAnimationTransitionCurlUp/Down be of any use? > > On 07/04/2010, at 2:10 AM, Alex Kac wrote: > >> Well they m

Correct way to manage drag-delete cursor?

2010-04-07 Thread Graham Cox
Hi all, I'm working way too hard to make this work, making me think I've just missed something obvious. I have a window containing two main views. I can drag items from one of the views into the other view. That all works fine, and is entirely under the control of the drag destination in terms

Re: How could I make the first row not to be edited or moved in UITableView

2010-04-07 Thread Jack Nutting
On Tue, Apr 6, 2010 at 11:04 AM, Kalyanraju M wrote: > How could I make the first row not to be edited or moved in UITableView > > I know that with > - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath > *)indexPath > the first row could be set not to move but if another

Re: multiple-page print support in NSView

2010-04-07 Thread Keary Suska
On Apr 6, 2010, at 10:11 PM, Rua Haszard Morris wrote: > I am trying to write an NSView subclass to render a multi-page printout. What > I would like is to use the page/paper size in calculating the dimensions of > each page; for example, if the printout is made up of N rows of items, each > it

Re: NSPrintSavePath not working correctly?

2010-04-07 Thread Brian Postow
More info: When I print out my NSPrintInfo object, I get: print info { NSBottomMargin = 90; NSCopies = 1; NSDetailedErrorReporting = 0; NSFaxNumber = ""; NSFirstPage = 1; NSHorizonalPagination = 2; NSHorizontallyCentered = 1; NSJobDisposition = NSPrintSpoolJob;

Core Data: binding to a sum

2010-04-07 Thread David Catmull
How do I make a table view column show a sum calculated from Core Data Values? I have a Budget entity with a to-many relationship of BudgetItems. In a table view listing my budgets, I want a column that displays the total of a budget's items' amounts. I tried binding the column to ite...@sum.li

Re: exceptions when NSTextStorage initialized with empty string

2010-04-07 Thread Kyle Sluder
On Apr 6, 2010, at 11:31 PM, Martin Hewitson wrote: 8 TeXnicle0x00010001e85e - [TPTextView insertText:] + 199 You need to show us the code for this method. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@

Table view question

2010-04-07 Thread Dave
Hi All, I was wondering if it is possible to change an Object in the underlying array associated with a Table View and have the Table update? If the user clicks an entry in the table I want to change the string on one of the rows in a section. My table is arranged as a Number of Sections

Re: exceptions when NSTextStorage initialized with empty string

2010-04-07 Thread Martin Hewitson
Hi Kyle, At the moment it does nothing but call super. I was using it to handle line-wrapping, but in the process of debugging this problem it's reduced to - (void)insertText:(id)aString { [super insertText:aString]; } One further piece of info: if I set the layout manager to a

Re: exceptions when NSTextStorage initialized with empty string

2010-04-07 Thread Stephen J. Butler
On Wed, Apr 7, 2010 at 1:31 AM, Martin Hewitson wrote: >                // Clean up >                [textContainer release]; >                [layoutManager release]; >                [str release]; Are you sure that all these are balanced releases? The only one you show allocating is layoutMana

Re: OS X Game Programming

2010-04-07 Thread Jens Alfke
On Apr 7, 2010, at 12:34 AM, Pascal Harris wrote: I've never programmed games before, although I've got a fair bit of useful OS X utility software under my belt. I've now had a few ideas that I'd like to implement - and I'm stuck at almost the first hurdle. I've managed to create an Open

Re: Alternative Location of Cocoa ID3 Framework??

2010-04-07 Thread Jens Alfke
On Apr 7, 2010, at 1:54 AM, patrick machielse wrote: Don't use that, it is no longer up to date. It was a valiant attempt at ID3 support, but it doesn't adhere to the ID3 specifications very well and it stumbles on real world tags more often than other solutions do. Yeah; after running i

Re: Table view question

2010-04-07 Thread Jens Alfke
Um, is this for OS X or iPhone? You need to make that clear... —Jens___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.c

Re: exceptions when NSTextStorage initialized with empty string

2010-04-07 Thread Martin Hewitson
Yes, they are. Sorry, I was over selective in my first post in an attempt to just show the salient points. Here's a more complete excerpt from the code that sets up the text storage etc: // Get the string from the File entity NSError *error = nil;

iPad: Device Orientation

2010-04-07 Thread Development
Ok I'm going to try to explain this... I have an application with two different view controllers. One view controller handles a compose mail UI. The built in message frame work one. That is usually allowed to reorient to any device orientation but will usually be used only in portrait. The se

Re: Table view question

2010-04-07 Thread Dave
Hi, Sorry for the iPhone. I've actually managed to get this working now, but not sure if it's the best/right way to do it. Here is a code snippet from tableView:didSelectRowAtIndex myKey - [self.mKeyArray objectAtIndex:theIndexPath.section]; myDictionary = [self.mDictionary objectForKey:m

Re: Core Data: binding to a sum

2010-04-07 Thread Keary Suska
On Apr 7, 2010, at 9:14 AM, David Catmull wrote: > How do I make a table view column show a sum calculated from Core Data Values? > > I have a Budget entity with a to-many relationship of BudgetItems. In a table > view listing my budgets, I want a column that displays the total of a > budget's

Re: OS X Game Programming

2010-04-07 Thread Laurent Daudelin
On Apr 7, 2010, at 09:28, Jens Alfke wrote: > On Apr 7, 2010, at 12:34 AM, Pascal Harris wrote: > >> I've never programmed games before, although I've got a fair bit of useful >> OS X utility software under my belt. I've now had a few ideas that I'd like >> to implement - and I'm stuck at almo

Command /Developer/usr/bin/llvm-g++-4.2 failed with exit code 1

2010-04-07 Thread Ignacio Enriquez
Hi everybody. I get this link error: Command /Developer/usr/bin/llvm-g++-4.2 failed with exit code 1 every time I try to run my program. This runs perfectly in a new iMac 27' but in my macBook and other kind of old iMac error appears. I am running snow leopard 10.6.2 with the latest Xcode 3.2.2. in

change the CGColorSpace when using a CIFilter to use 16bits/channel images

2010-04-07 Thread paul morel
Hi,does anybody knows how to change the colorspace when we want to use a CIFilter?It seems possible looking at the question asked : http://lists.apple.com/archives/quartz-dev/2008/Aug/msg00060.html But I didn't manage to change it. My guess is that if I can change the colorspace from RGBA 8bits

Re: Command /Developer/usr/bin/llvm-g++-4.2 failed with exit code 1

2010-04-07 Thread Kyle Sluder
2010/4/7 Ignacio Enriquez : > I get this link error: > Command /Developer/usr/bin/llvm-g++-4.2 failed with exit code 1 > every time I try to run my program. You should ask questions about developer tools on the xcode-users list. --Kyle Sluder ___ Cocoa

Re: Command /Developer/usr/bin/llvm-g++-4.2 failed with exit code 1

2010-04-07 Thread Ken Thomases
This has nothing to do with Cocoa. Try the xcode-users list. Regards, Ken On Apr 7, 2010, at 12:40 PM, Ignacio Enriquez wrote: > Hi everybody. > I get this link error: > Command /Developer/usr/bin/llvm-g++-4.2 failed with exit code 1 > every time I try to run my program. > This runs perfectly i

Re: Command /Developer/usr/bin/llvm-g++-4.2 failed with exit code 1

2010-04-07 Thread Ignacio Enriquez
ok. sorry On Thu, Apr 8, 2010 at 2:53 AM, Ken Thomases wrote: > This has nothing to do with Cocoa.  Try the xcode-users list. > > Regards, > Ken > > On Apr 7, 2010, at 12:40 PM, Ignacio Enriquez wrote: > >> Hi everybody. >> I get this link error: >> Command /Developer/usr/bin/llvm-g++-4.2 failed

Re: OS X Game Programming

2010-04-07 Thread Seth Willits
On Apr 7, 2010, at 12:34 AM, Pascal Harris wrote: > Sorry to post such a non-technical question - I didn't know who else to ask. Hi Pascal, http://www.idevgames.com/forum/ -- Tons of active members willing to help. -- Seth Willits ___ Co

Re: OS X Game Programming

2010-04-07 Thread Raffael Cavallaro
On Apr 7, 2010, at 1:31 PM, Laurent Daudelin wrote: > Jens, > > Is there an easy way to download the whole package? I looked around and > besides downloading each item individually, I didn't see anything like a dmg > or zip or svn link. At the top of the page it says: "Clone this repository

Re: OS X Game Programming

2010-04-07 Thread Philip Mobley
On Apr 7, 2010, at 10:31 AM, Laurent Daudelin wrote: > Is there an easy way to download the whole package? I looked around and > besides downloading each item individually, I didn't see anything like a dmg > or zip or svn link. At the far top-right, there is a button labeled "Get Source" which

Re: iPad: Device Orientation

2010-04-07 Thread David Duncan
How are you checking and working with orientations? If your using the View Controller orientation notifications, then this should just work (if your doing everything correctly). If your using UIDevice orientation notifications (which it sounds like since you have to move the status bar manually

Re: Alternative Location of Cocoa ID3 Framework??

2010-04-07 Thread patrick machielse
Op 7 apr 2010, om 18:33 heeft Jens Alfke het volgende geschreven: > On Apr 7, 2010, at 1:54 AM, patrick machielse wrote: > >> Don't use that, it is no longer up to date. > > Yeah; after running into some bugs, and looking through the source code, I > decided I wasn't comfortable letting it rewr

Re: iPad: Device Orientation

2010-04-07 Thread Development
Well in the viewcontrollers I'm using the - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation and returning yes when the orientation is: UIInterfaceOrientationLandscapeLeft for the editor and YES when it's portrait in the mail composer. I am not using de

Re: Alternative Location of Cocoa ID3 Framework??

2010-04-07 Thread Michael Ash
On Wednesday, April 7, 2010, Jens Alfke wrote: > > FYI to the OP: If you haven't worked with LGPL code before, be aware that you > must build it into a separate dynamic library or framework that you can > bundle inside your app. Statically linking the code into your app violates > the LGPL lice

copy/paste in modal window

2010-04-07 Thread Dave McCarthy
Someone posted essentially this same question in 2004 but there were no answers. I've got a Cocoa plugin running inside a host application. The plugin opens an NSOpenPanel, and as a result of user action there, a modal window containing two NSTextFields. I'd like the user to be able to copy and

Re: Problems with repetetive execution of netstat using NSTask and NSTimer

2010-04-07 Thread Kazior Fukacz
Thanks for your answers! By the way, are you using garbage collection? If not, then you're leaking several objects (those pointed to by 'netstat', 'pipe', and 'string'). Yeah, I suspect that the pipes (and corresponding NSFileHandles) are indeed leaking, and that's the real problem. You

Re: Problems with repetetive execution of netstat using NSTask and NSTimer

2010-04-07 Thread Kazior Fukacz
Hello, How is it that it starts to malfunction after such amount of time? Because the leak builds up over time until you run out of file descriptors, and -[NSPipe init] finally starts returning nil. Yeah, I figured it out like 10 minutes after I asked that question. Found this discussion

Re: iPad: Device Orientation

2010-04-07 Thread Development
Possible answer to this The forums seem to have a some people posting very similar issues to this one. I'm assuming this means that since my iPhone version of the application works perfectly, and because I'm not the only one having this problem that this is a platform issue, in other words need

Re: OS X Game Programming

2010-04-07 Thread Jens Alfke
On Apr 7, 2010, at 11:08 AM, Raffael Cavallaro wrote: At the top of the page it says: "Clone this repository (size: 959.4 KB): HTTPS / SSH $ hg clone http://bitbucket.org/snej/geekgameboard/"; This means you need mercurial: No you don't — you can just click the "get source" button at the to

Re: copy/paste in modal window

2010-04-07 Thread Kyle Sluder
On Tue, Apr 6, 2010 at 2:11 PM, Dave McCarthy wrote: > I tried implementing keyDown in my window controller but it is never called. > I tried subclassing NSWindow and implementing keyDown there but it is never > called. Maybe keyDown isn't even the right place to be looking, but my Cocoa > expe

Re: multiple-page print support in NSView

2010-04-07 Thread Rua Haszard Morris
>> I am trying to write an NSView subclass to render a multi-page printout. >> What I would like is to use the page/paper size in calculating the >> dimensions of each page; for example, if the printout is made up of N rows >> of items, each item rendering as 60-point-tall row. >> >> So, assumi

iPad: UIImagePickerController

2010-04-07 Thread Development
How do you use the image picker controller on the iPad? My iphone version works fine but I get a UI Mess on the iPad. (Part of the nav bar loads and nothing else.) Anyway so I tried if ([[[UIDevice currentDevice]model]containsString:@"iPad"]){ if( [UIImagePickerController

Re: iPad: UIImagePickerController

2010-04-07 Thread Ricky Sharp
On Apr 7, 2010, at 3:37 PM, Development wrote: > How do you use the image picker controller on the iPad? My iphone version > works fine but I get a UI Mess on the iPad. > And now it crashes telling me I have to use a popover: > > *** Terminating app due to uncaught exception 'NSInvalidArgumen

Re: iPad: UIImagePickerController

2010-04-07 Thread Luke the Hiesterman
On Apr 7, 2010, at 1:37 PM, Development wrote: > How do you use the image picker controller on the iPad? My iphone version > works fine but I get a UI Mess on the iPad. (Part of the nav bar loads and > nothing else.) Anyway so I tried > if ([[[UIDevice currentDevice]model]containsString:@

Re: exceptions when NSTextStorage initialized with empty string

2010-04-07 Thread Ross Carter
On Apr 7, 2010, at 11:52 AM, Martin Hewitson wrote: > Hi Kyle, > > At the moment it does nothing but call super. I was using it to handle > line-wrapping, but in the process of debugging this problem it's reduced to > > - (void)insertText:(id)aString > { > [super insertText:aString]; > }

Re: OS X Game Programming

2010-04-07 Thread Raffael Cavallaro
On Apr 7, 2010, at 3:58 PM, Jens Alfke wrote: > On Apr 7, 2010, at 11:08 AM, Raffael Cavallaro wrote: > >> At the top of the page it says: >> >> "Clone this repository (size: 959.4 KB): HTTPS / SSH >> $ hg clone http://bitbucket.org/snej/geekgameboard/"; >> >> This means you need mercurial: >

Re: iPad: UIImagePickerController

2010-04-07 Thread Development
I had gotten lost because I forgot that I had the project's base SDK set to 3.0 so that the iPhone version would build and launch. I couldn't find the popover controller api and was very confused. Sorry. On Apr 7, 2010, at 1:43 PM, Ricky Sharp wrote: > > On Apr 7, 2010, at 3:37 PM, Development

NSPrintInfo, setting filename for print to PDF?

2010-04-07 Thread Brian Postow
Ok, I'm still working on this from my other question. I can see the printinfo before I run the operation, and it looks correct. NSSavePath is set to the path I want, as is the jobsavingURL. When, but when I actually DO the print to PDF, the filename, the filename becomes .pdf.pdf. When I cancel

How to subclass UIButton?

2010-04-07 Thread WT
Hello all, I need to create a custom bar of UIButton instances which can be scrolled left and right using a swipe gesture. I am thus following the "Autoscroll" sample code from Apple, which subclasses UIImageView to produce a scrollable bar of thumbnail images. My problem is how to correctly su

Character Map

2010-04-07 Thread Ian was here
Does anyone know to programmatically bring up the special characters panel that TextEdit shows when you select the "Special Characters..." item in the Edit menu? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

How does Finder determine when a file is busy being written to the disk?

2010-04-07 Thread Lee Gillen
When copying large files (over a GB each) from a network drive to a local drive Finder shows these files are busy by graying their filename out until they are finished writing to the local system. How can I detect this as well? I tried calling the NSFileManager fileAttributesAtPath:traverseLink:

Re: Wondering about that iPad page curling

2010-04-07 Thread Fritz Anderson
On 7 Apr 2010, at 5:44 AM, Tito Ciuro wrote: > How about this example? You can download the source as well: > > http://www.devx.com/wireless/Article/42476/1763/page/3 Given that the article's title and opening paragraph suggest that it's about something pretty elementary, and site wants a "free

Re: Character Map

2010-04-07 Thread Jens Alfke
On Apr 7, 2010, at 4:28 PM, Ian was here wrote: Does anyone know to programmatically bring up the special characters panel that TextEdit shows when you select the "Special Characters..." item in the Edit menu? There's a menu item for it in the Edit menu, in any new app's nib. Take a look

Re: How does Finder determine when a file is busy being written to the disk?

2010-04-07 Thread Jens Alfke
On Apr 7, 2010, at 4:31 PM, Lee Gillen wrote: When copying large files (over a GB each) from a network drive to a local drive Finder shows these files are busy by graying their filename out until they are finished writing to the local system. I think the Finder only knows that because it's th

Re: Wondering about that iPad page curling

2010-04-07 Thread Philip Mobley
On Apr 7, 2010, at 4:46 PM, Fritz Anderson wrote: > Given that the article's title and opening paragraph suggest that it's about > something pretty elementary, and site wants a "free" registration to show you > any more, I'd like to hear from people who have read the whole thing whether > page-

Re: Character Map

2010-04-07 Thread Graham Cox
On 08/04/2010, at 9:50 AM, Jens Alfke wrote: >> Does anyone know to programmatically bring up the special characters panel >> that TextEdit shows when you select the "Special Characters..." item in the >> Edit menu? > > There's a menu item for it in the Edit menu, in any new app's nib. Take a

Re: How does Finder determine when a file is busy being written to the disk?

2010-04-07 Thread Sean McBride
On Wed, 7 Apr 2010 19:31:19 -0400, Lee Gillen said: >When copying large files (over a GB each) from a network drive to a >local drive Finder shows these files are busy by graying their >filename out until they are finished writing to the local system. Not sure if it still applies these days, but

Re: How does Finder determine when a file is busy being written to the disk?

2010-04-07 Thread Lee Gillen
On Wed, Apr 7, 2010 at 7:53 PM, Jens Alfke wrote: > I think the Finder only knows that because it's the one doing the copying. > If something else is copying a file (like the 'cp' command) the Finder > doesn't gray out the file. But I think what is happening is there is an FSEvent when the place

SFAuthorization bug / crash

2010-04-07 Thread Seth Willits
Hi guys, Strange crash. It happens for one user "on a couple 10.5 machines." objc_assign_strongCast seems to be GC related, but I'm not using GC. It seems that maybe this is a 10.5 bug where initWithFlags:rights:environment: is returning junk? Any ideas? /* OS Version: Mac OS X 10.5

Re: Character Map

2010-04-07 Thread Greg Guerin
Ian was here wrote: Does anyone know to programmatically bring up the special characters panel that TextEdit shows when you select the "Special Characters..." item in the Edit menu? Paste into Terminal: open -a CharPaletteServer Should be able to work out the rest from that. -- GG __

Re: Character Map

2010-04-07 Thread David Duncan
On Apr 7, 2010, at 4:28 PM, Ian was here wrote: > Does anyone know to programmatically bring up the special characters panel > that TextEdit shows when you select the "Special Characters..." item in the > Edit menu? [[NSApplication sharedApplication] orderFrontCharacterPalette:nil]; -- David D

Reordered columns and [tableView editColumn:0 row:ind withEvent:nil select:YES];

2010-04-07 Thread Chris Idou
I've got some code that uses editColumn:0 to force the user into edit mode on the first column. But I've noticed that if user column reordering is allowed, this no longer edits the correct column. This seems odd to me because I thought Cocoa pretty much shielded the programmer from all the us

Re: Reordered columns and [tableView editColumn:0 row:ind withEvent:nil select:YES];

2010-04-07 Thread Graham Cox
On 08/04/2010, at 11:46 AM, Chris Idou wrote: > > > I've got some code that uses editColumn:0 to force the user into edit mode on > the first column. > > But I've noticed that if user column reordering is allowed, this no longer > edits the correct column. This seems odd to me because I thou

Re: Character Map

2010-04-07 Thread Ian was here
Beautiful! Thanks. --- On Wed, 4/7/10, David Duncan wrote: From: David Duncan Subject: Re: Character Map To: "Ian was here" Cc: "Apple Developer Mailing List" Date: Wednesday, April 7, 2010, 5:40 PM On Apr 7, 2010, at 4:28 PM, Ian was here wrote: Does anyone know to programmatically bring u

Re: Alternative Location of Cocoa ID3 Framework??

2010-04-07 Thread Chase Meadors
I must confess, the framework sounds great. However, I'm a little new at this, especially open-source. I can't seem to sort out from Apple's guide on building open source binaries exactly how to do it. Could you give or direct me to a guide on what exactly I need to do to get the framework

Problem with vCard and AddressBook ABPerson UID, HELP!!

2010-04-07 Thread Eric Giguere
Hi all I've been fighting now with the AdressBook API for a while and found a disturbing problem. Maybe someone can help. I'm trying to use the AddressBook as my main person "database" in my application. I've create a small function that accepts drag - drops from the Address book to add a new

Re: How does Finder determine when a file is busy being written to the disk?

2010-04-07 Thread Jens Alfke
That may be true, but it's not directly related to the Finder graying out the source file. As I said, it grays out the file when it itself starts copying it. It has no way of telling when some other process is doing the copy. --Jens {via iPad} On Apr 7, 2010, at 5:16 PM, Lee Gillen wrote: >

Re: Alternative Location of Cocoa ID3 Framework??

2010-04-07 Thread Jens Alfke
Check the README file for instructions on building it. If there's a way to build it into a dynamic library, do that (most likely through some 'make' command). Then you can add that library file to your Xcode project. --Jens {via iPad} On Apr 7, 2010, at 8:03 PM, Chase Meadors wrote: > I must

IB Parses Class Names?

2010-04-07 Thread Patrick M. Rutkowski
I find it odd that the following happens: In IB, go to Tools->Library, find the generic NSObject thing, and place one into the nib file's object pool. Then go to Tools->Inspector, find the identity inspector, and change the object's class name from "NSObject" to something like "GPSManager." Once

Re: How to change to the smoother single-stage animation

2010-04-07 Thread Roy Lovejoy
Hi: I am getting this message. Using two-stage rotation animation. To use the smoother single- stage animation, this application must remove two-stage method implementations. I'm getting this message on a brand-new (created with 3.2 SDK) Tab project- there are *NO* two stage methods any

Re: Core Data: binding to a sum

2010-04-07 Thread David Catmull
On Apr 7, 2010, at 10:19 AM, Keary Suska wrote: > On Apr 7, 2010, at 9:14 AM, David Catmull wrote: >> ..so I take it the particular NSSet variant used by Core Data doesn't >> support observing @sum. Or did I do that wrong? > > Yes, because you are trying to observe an element of a set. Same goes

Re: IB Parses Class Names?

2010-04-07 Thread Kyle Sluder
On Apr 7, 2010, at 3:44 PM, "Patrick M. Rutkowski" wrote: Is there a way to turn this IB feature off? No. Just give the object a name. Much better than having a bunch of nameless Custom Objects floating around. --Kyle Sluder ___ Cocoa-dev mai

Re: Alternative Location of Cocoa ID3 Framework??

2010-04-07 Thread Chase Meadors
I went into the directory and ran configure and make. Everything looks like it went okay, but what file am I looking for? On Apr 7, 2010, at 10:28 PM, Jens Alfke wrote: Check the README file for instructions on building it. If there's a way to build it into a dynamic library, do that (most l

Re: Alternative Location of Cocoa ID3 Framework??

2010-04-07 Thread Jens Alfke
On Apr 7, 2010, at 8:37 PM, Chase Meadors wrote: > I went into the directory and ran configure and make. Everything looks like > it went okay, but what file am I looking for? It depends. All projects are different. Did it create a “bin” or “lib” subdirectory? (Did you check the readme file or

Re: exceptions when NSTextStorage initialized with empty string

2010-04-07 Thread Martin Hewitson
On Apr 7, 2010, at 10:50 PM, Ross Carter wrote: > On Apr 7, 2010, at 11:52 AM, Martin Hewitson > wrote: > >> Hi Kyle, >> >> At the moment it does nothing but call super. I was using it to handle >> line-wrapping, but in the process of debugging this problem it's reduced to >> >> - (void)ins

Re: Alternative Location of Cocoa ID3 Framework??

2010-04-07 Thread Chase Meadors
I ran sudo make install, and it appears to have installed everything in usr/local/include/taglib. Is that it? Am I ready to #include these files in an Xcode project? What exactly do I #include? filename>? Sorry for all the questions, but you've been a lot of help. On Apr 7, 2010, at 10:43 PM,

re: Problem with vCard and AddressBook ABPerson UID, HELP!!

2010-04-07 Thread Ben Trumbull
> 've been fighting now with the AdressBook API for a while and found a > disturbing problem. Maybe someone can help. > > I'm trying to use the AddressBook as my main person "database" in my > application. I've create a small function that accepts drag - drops from the > Address book to add a n

Re: How to subclass UIButton?

2010-04-07 Thread john chen
I think UIButton is not designed for subclassing. You can try composition, or create UIButton category method for custom-build button. Apple has sample code in UICatalog to create custom-build button. On Wed, Apr 7, 2010 at 2:26 PM, WT wrote: > Hello all, > > I need to create a custom bar of UIBu

Re: Problem with vCard and AddressBook ABPerson UID, HELP!!

2010-04-07 Thread Jens Alfke
>> I'm trying to use the AddressBook as my main person "database" in my >> application. I've create a small function that accepts drag - drops from the >> Address book to add a new person in my app. So far so good. >> >> I'm trying after to show in my application details about that linked perso

Re: Alternative Location of Cocoa ID3 Framework??

2010-04-07 Thread Jens Alfke
On Apr 7, 2010, at 9:05 PM, Chase Meadors wrote: > I ran sudo make install, and it appears to have installed everything in > usr/local/include/taglib. Is that it? Those are the headers. The actual library itself must be somewhere else. (Check /usr/local/lib.) You’d need to add /usr/local/incl

Re: How to subclass UIButton?

2010-04-07 Thread WT
On Apr 8, 2010, at 6:44 AM, john chen wrote: > I think UIButton is not designed for subclassing. That was my hunch as well. > You can try > composition, or create UIButton category method for custom-build > button. Apple has sample code in UICatalog to create custom-build > button. A category o

[SOLVED]: Re: exceptions when NSTextStorage initialized with empty string

2010-04-07 Thread Martin Hewitson
OK, bug found. A really silly mistake on my part but I think it's worth reporting in case it saves someone else a headache. My NSTextView subclass has syntax coloring which is called on receipt of NSTextStorageDidProcessEditingNotification. In the method that does the coloring, I had the fol

Re: How to subclass UIButton?

2010-04-07 Thread Jack Nutting
I've successfully subclassed UIButton with no problems. I my case I wasn't interested in the "style" since I was implementing my own, so I created my own class method which just calls initWithFrame: + (id)buttonWithFrame:(CGRect)frame { return [[[self alloc] initWithFrame:frame] autorelease]; }

Re: How to subclass UIButton?

2010-04-07 Thread WT
> If you want to use the existing buttonWithStyle: method, all you need > to do is implement initWithFrame:, since that's the default > initializer Is the fact that -initWithFrame: is the designated initializer documented anywhere? The docs for UIButton don't mention it. If this is documented and

Query on File Wrapping

2010-04-07 Thread Swetha Chinthireddy
Hi , Our application needs to log trace messages to a file for troubleshooting . Currently once the file size reaches 10MB , we are creating a new file and copying the last 4KB messages to the new file.But the requirement is to wrap the file i.e to always keep the latest 10MB traces. Any inp