Re: ObjC data structure for C++/ObjC++ objects?

2008-11-07 Thread has
Jonathan Bailey wrote: I am trying to find a way to create a dynamically-growable objective C data structure within objective C++ code, such as a NSMutableDictionary, that can store values that are pointers to an objective C++ or straight-up C++ object. NSMutableDictionary seems to only accept

Re: Xcode 3.1 (iphone SDK version) breaks my Core Data app

2008-11-07 Thread Steve Steinitz
Hi Rob Keniger, Joar and Nick Zitzmann, Thanks for your quick replies and thanks in advance to anyone else who replies. Rob and Joar you were right about Guard Malloc. Its running perfectly now. What a huge relief. I had visions of core data database format incompatibilities... Its probably w

Re: Xcode 3.1 (iphone SDK version) breaks my Core Data app

2008-11-07 Thread Rob Keniger
On 08/11/2008, at 3:28 PM, Steve Steinitz wrote: I have a Core Data application that worked well when built from Xcode 3.0. I updated to the iphone SDK version of Xcode 3.1 and now the app no longer works. It won't open the production database but will open a small, testing database. When

Re: Xcode 3.1 (iphone SDK version) breaks my Core Data app

2008-11-07 Thread j o a r
On Nov 7, 2008, at 9:28 PM, Steve Steinitz wrote: When the app starts up it gives the following (not sure if its a problem, I've just never seen it before): GuardMalloc: Allocations will be placed on 16 byte boundaries. GuardMalloc: - Some buffer overruns may not be noticed. GuardMal

Re: Xcode 3.1 (iphone SDK version) breaks my Core Data app

2008-11-07 Thread Nick Zitzmann
On Nov 7, 2008, at 10:28 PM, Steve Steinitz wrote: When I attempt to load the large production database it uses a lot of CPU for a while and then finally fails with this: Attempt to allocate 4194304 bytes for NS/CFDictionary failed 1 _NSOutOfMemoryErrorHandler (in Foundation) + 72

Re: ObjC data structure for C++/ObjC++ objects?

2008-11-07 Thread Jonathan Bailey
Hi Andrew - Thanks for the suggestion. Sadly, I have to support a large user-base of people still running 10.4, otherwise I would definitely have gone for the NSHashMap. :P Best, JB On Sat, Nov 8, 2008 at 12:33 AM, Andrew Merenbach <[EMAIL PROTECTED]> wrote: > Greetings, Jonathan, > > If you can

Re: Notification when window is closing?

2008-11-07 Thread Rob Keniger
On 08/11/2008, at 3:57 AM, Jean-Nicolas Jolivet wrote: Basically it looks like tabs, but instead of actual tabs, the "panels" are controlled by what looks like a toolbar... (so basically, click on a toolbar button to change the active panel...) a bit hard to explain but it's very easy to u

Re: ObjC data structure for C++/ObjC++ objects?

2008-11-07 Thread Andrew Merenbach
Greetings, Jonathan, If you can afford to target 10.5+ only, you can use an NSMapTable, which is a mutable type of collection "modeled after NSDictionary" but "can contain arbitrary pointers (its contents are not constrained to being objects)"; it can also "hold weak references to its keys

Xcode 3.1 (iphone SDK version) breaks my Core Data app

2008-11-07 Thread Steve Steinitz
Hello, I have a Core Data application that worked well when built from Xcode 3.0. I updated to the iphone SDK version of Xcode 3.1 and now the app no longer works. It won't open the production database but will open a small, testing database. When the app starts up it gives the following (n

Re: ObjC data structure for C++/ObjC++ objects?

2008-11-07 Thread Jonathan Bailey
Hi Michael - Thanks much for your response. I actually did originally intend to use an STL map, but I couldn't get it to work. It seemed that when I added a C++ object to a map declared as an instance variable within my ObjC++ class's header file, this generated an "EXC_BAD_ACCESS" signal - and no

Re: Skinny NSPanel titlebar for NSWindow?

2008-11-07 Thread j o a r
On Nov 7, 2008, at 7:03 PM, Russ wrote: At the moment, I only have sendEvent reworked (to fix mouseMoved), so a separate iteration for NSPanel wouldn't be a big problem. It just seemed I should be able to turn on a style bit and call it a day though, since presumably that is what NSPanel i

Re: UI help: visibly disabling NSImageView

2008-11-07 Thread Brad Peterson
> > Does anyone have any ideas on how to _visually_ > indicate that an NSImageView is not editable? Since it > doesn't really do anything different when it's > editable or not editable, it's tough for the user to > tell which state is which. > > It's trivial to create a subclass of NSImageView that

Re: ObjC data structure for C++/ObjC++ objects?

2008-11-07 Thread Michael Ash
On Fri, Nov 7, 2008 at 8:41 PM, Jonathan Bailey <[EMAIL PROTECTED]> wrote: > Hi all - > > I am trying to find a way to create a dynamically-growable objective C > data structure within objective C++ code, such as a > NSMutableDictionary, that can store values that are pointers to an > objective C++

Re: Skinny NSPanel titlebar for NSWindow?

2008-11-07 Thread Russ
At the moment, I only have sendEvent reworked (to fix mouseMoved), so a separate iteration for NSPanel wouldn't be a big problem. It just seemed I should be able to turn on a style bit and call it a day though, since presumably that is what NSPanel is doing. - Original Message Subje

ObjC data structure for C++/ObjC++ objects?

2008-11-07 Thread Jonathan Bailey
Hi all - I am trying to find a way to create a dynamically-growable objective C data structure within objective C++ code, such as a NSMutableDictionary, that can store values that are pointers to an objective C++ or straight-up C++ object. NSMutableDictionary seems to only accept pointers to obje

Thinking of a new CocoaHeads Meeting Place in Dorset UK

2008-11-07 Thread Martin Spenceley
I was wondering if there would be any interest of a new CocoaHeads Meeting place near Poole, Dorset UK. Unfortunately, the Swindon and London meetings are too far away (2.5+ hours) and inconveniently timed for me to attend those. I can provide a free meeting place on a Sunday afternoon for 20+

Re: Skinny NSPanel titlebar for NSWindow?

2008-11-07 Thread j o a r
On Nov 7, 2008, at 5:51 PM, Russ wrote: I'd like to be able to create NSWindows with the skinny titlebar of NSPanels, programmatically, without having to use NSPanel --- I've subclassed NSWindow, so if I need to create an NSPanel instead I'll have to have a duplicate subclass for the panel

Skinny NSPanel titlebar for NSWindow?

2008-11-07 Thread Russ
I'd like to be able to create NSWindows with the skinny titlebar of NSPanels, programmatically, without having to use NSPanel --- I've subclassed NSWindow, so if I need to create an NSPanel instead I'll have to have a duplicate subclass for the panel, which gets ugly. Is there a way to get th

Trouble with layer-backed view on NSPreferencePane

2008-11-07 Thread Stefan Hafeneger
Hi, I use a layer-backed view on a preference pane. When I enable layer- backing the system preferences application does not do smooth transitions when the I select and deselect the pane. I could solve the first case. I start with no layer-backing and when the pane is shown I enable it.

Settings Bundle Button

2008-11-07 Thread Michel Barakat
Hey folks, The following falls within development on the iPhone. If you check Settings - > Safari, you will notice a button saying "Clear History". I would like to have a similar button (same interaction: eg. user taps on button, that has to confirm) in my settings. I am using the Settings Bundl

Re: How to get a list of all known file types?

2008-11-07 Thread Daniel Waylonis
On Nov 6, 2008, at 6:48 PM, Phil wrote: On Fri, Nov 7, 2008 at 2:12 PM, Chris Idou <[EMAIL PROTECTED]> wrote: I've got an app which is matching on file types, so I want the user to be able to say "show me all the... say... MS-Word documents, or JPeg images" or whatever. So I need to presen

Re: Core Data and NSNumber values

2008-11-07 Thread Sean McBride
On 11/6/08 11:48 PM, Quincey Morris said: >floating point representation issues for you for free.) So now you >have 2 issues: > >1. What if I want scalar accessors? > >You write your own. Or you use mogenerator, which creates them for you: -- __

Re: A trapped keyDown event

2008-11-07 Thread Eric Gorr
On Nov 7, 2008, at 4:24 PM, Eric Gorr wrote: The problem I am having is that when my NSPanel is the key window and I press Cmd-N to create a new document window, the event is not handled correctly and no new document window is created. If the NSPanel is not the key window, the event is han

Re: dragging an image to Photoshop dock tile

2008-11-07 Thread Nick Zitzmann
On Nov 7, 2008, at 2:31 PM, Jeffrey Goines wrote: Could you or someone else please give some advice on how to continue trying to make it possible dragging the image to Photoshop without creating a temporary file? I don't have or use Photoshop at the moment. Do you know if it makes any s

Re: dragging an image to Photoshop dock tile

2008-11-07 Thread Jeffrey Goines
On Thu, Nov 6, 2008 at 9:35 PM, Nick Zitzmann <[EMAIL PROTECTED]> wrote: > Looking at things a little deeper, it appears that dragging a pasteboard to > the Dock invokes a service if a matching pasteboard type is found. Could you or someone else please give some advice on how to continue trying

A trapped keyDown event

2008-11-07 Thread Eric Gorr
The problem I am having is that when my NSPanel is the key window and I press Cmd-N to create a new document window, the event is not handled correctly and no new document window is created. If the NSPanel is not the key window, the event is handled correctly and I get a new document window

Re: A finished moving notification for a window?

2008-11-07 Thread Eric Gorr
On Nov 7, 2008, at 3:15 PM, Eric Gorr wrote: On Nov 7, 2008, at 12:58 PM, James Walker wrote: Eric Gorr wrote: On Nov 6, 2008, at 5:38 PM, [EMAIL PROTECTED] wrote: At 5:25 PM -0500 11/6/08, Eric Gorr wrote: Apparently, NSPanel's don't get NSWindowWillMoveNotification's - at least I am not

Re: A finished moving notification for a window?

2008-11-07 Thread Eric Gorr
On Nov 7, 2008, at 12:58 PM, James Walker wrote: Eric Gorr wrote: On Nov 6, 2008, at 5:38 PM, [EMAIL PROTECTED] wrote: At 5:25 PM -0500 11/6/08, Eric Gorr wrote: Apparently, NSPanel's don't get NSWindowWillMoveNotification's - at least I am not getting them in 10.5. Perhaps a bug? don't

Filter Scaling in CALayers

2008-11-07 Thread Gordon Apple
I believe this to be a CALayer question, not a QT question. I'm applying filters to my video, a la the QTRecorder example. It works correctly for a QTCaptureView where it applies the filter to each frame (via the delegate), but does not scale its effects in a QTCaptureLayer when applied to th

Re: Notification when window is closing?

2008-11-07 Thread Jean-Nicolas Jolivet
Yup, exactly what I had in mind! Thanks to both of you... -Jean-Nicolas Jolivet Jean-Nicolas Jolivet wrote: Thanks! working like a charm! :) Oh while I'm on the preference panel subject... I notice that a lot of applications (Adium, Safari, TextMate etc.. comes to mind) are using what loo

Re: Notification when window is closing?

2008-11-07 Thread Jean-Daniel Dupas
Le 7 nov. 08 à 18:57, Jean-Nicolas Jolivet a écrit : Thanks! working like a charm! :) Oh while I'm on the preference panel subject... I notice that a lot of applications (Adium, Safari, TextMate etc.. comes to mind) are using what looks like a fancy version of tabs in their preference...

Re: Performance problems with doubleClickAtIndex

2008-11-07 Thread Douglas Davidson
On Nov 5, 2008, at 9:37 PM, Mark Munz wrote: The same basic test using the FindPanel's ReplaceAll (with Full word option) takes under 1 second to complete on the same text. I thought I read that FindPanel was also using doubleClickAtIndex:. The performance difference seems to hint that it is no

Re: Issue with the downloading url

2008-11-07 Thread Jean-Daniel Dupas
This is a specific shoutcast error. Probably an anti-ripper hack. ( http://all-streaming-media.com/streaming-media-faq/faq-SHOUTcast-ripper.htm ). I found it was the user-agent by comparing the request send by Safari (that works) and the one send by my test application (using Wireshark to sni

Re: Notification when window is closing?

2008-11-07 Thread Andy Lee
On Nov 7, 2008, at 12:57 PM, Jean-Nicolas Jolivet wrote: Oh while I'm on the preference panel subject... I notice that a lot of applications (Adium, Safari, TextMate etc.. comes to mind) are using what looks like a fancy version of tabs in their preference... You should be able to do the sam

Re: Notification when window is closing?

2008-11-07 Thread Jean-Nicolas Jolivet
Thanks! working like a charm! :) Oh while I'm on the preference panel subject... I notice that a lot of applications (Adium, Safari, TextMate etc.. comes to mind) are using what looks like a fancy version of tabs in their preference... Basically it looks like tabs, but instead of actual tabs

Re: A finished moving notification for a window?

2008-11-07 Thread James Walker
Eric Gorr wrote: On Nov 6, 2008, at 5:38 PM, [EMAIL PROTECTED] wrote: At 5:25 PM -0500 11/6/08, Eric Gorr wrote: Apparently, NSPanel's don't get NSWindowWillMoveNotification's - at least I am not getting them in 10.5. Perhaps a bug? don't know. file a radar bug and see what response you g

Re: Notification when window is closing?

2008-11-07 Thread Randall Meadows
On Nov 7, 2008, at 10:27 AM, Jean-Nicolas Jolivet wrote: I'm working on my App's preference window... To populate the window's control with the UserDefaults, I use the windowDidLoad method, grab the defaults and populate my fields/controls (I'm doing this in my PreferenceController, which i

Notification when window is closing?

2008-11-07 Thread Jean-Nicolas Jolivet
I'm working on my App's preference window... To populate the window's control with the UserDefaults, I use the windowDidLoad method, grab the defaults and populate my fields/controls (I'm doing this in my PreferenceController, which is a subclass of NSWindowController) I was wondering if there

Re: Getting started with NSTableView

2008-11-07 Thread Andrew Merenbach
On Nov 7, 2008, at 8:37 AM, Benjamin Dobson wrote: Hi all, I'm trying to use an NSTableView for the first time. I've got a four- column table view set up in IB, and class files for the dataSource as follows: // snipped .m: @implementation FetchHighscores - (IBAction)fetchResults:(id)sen

Getting started with NSTableView

2008-11-07 Thread Benjamin Dobson
Hi all, I'm trying to use an NSTableView for the first time. I've got a four- column table view set up in IB, and class files for the dataSource as follows: .h: @interface ShowResults : NSObject { IBOutlet id theTable; @private NSMutableArray *finalData;

Re: Arithmetics for large integers

2008-11-07 Thread Martin Stoufer
I use the GNU MP package (http://gmplib.org/) I had to tweak XCode 3 to get it to build 64-bit clean for the intel arch. It is used in a PI calculator I wrote and it is *brutally* fast and efficient. While it is all a raw C dylib, One could easily write a framework around it. Shawn Erickson wr

Re: Cocoa Application to front End for MySQL Database

2008-11-07 Thread Luis Rojas
Thanks, this was the pointer i needed On 11/7/08, Dave DeLong <[EMAIL PROTECTED]> wrote: > You may be interested in the Sequel Pro project, an open-source Cocoa > frontend for MySQL databases: > > http://code.google.com/p/sequel-pro/ > > Cheers, > > Dave > > On Nov 7, 2008, at 8:33 AM, Luis Rojas

Re: Arithmetics for large integers

2008-11-07 Thread Shawn Erickson
On Fri, Nov 7, 2008 at 7:32 AM, Horst Jäger <[EMAIL PROTECTED]> wrote: > Hi, > I'm looking for a possibility to use arithmetics for arbitrarily large > integers in objective c. Is there a special class or an framework that does > the job? Maybe vBigNum http://developer.apple.com/documentation

Arithmetics for large integers

2008-11-07 Thread Horst Jäger
Hi, I'm looking for a possibility to use arithmetics for arbitrarily large integers in objective c. Is there a special class or an framework that does the job? Thanks in advance Horst ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: UI help: visibly disabling NSImageView

2008-11-07 Thread Gregory Weston
Brad Peterson wrote: Does anyone have any ideas on how to _visually_ indicate that an NSImageView is not editable? Since it doesn't really do anything different when it's editable or not editable, it's tough for the user to tell which state is which. I'm thinking that maybe there's a way

RE: Link error: _open$UNIX2003

2008-11-07 Thread Etienne Guérard
You need to build QuickLite against the 10.4 SDK too. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: vendredi 7 novembre 2008 09:52 To: cocoa-dev@lists.apple.com Subject: Link error: _open$UNIX2003 I have developed a database base

Re: image in CoreData

2008-11-07 Thread sanchezm
Core Data properties can be declared 'transient', meaning that they won't be stored in the database. You can declare them in your model, and have code for them just like any other property. Since you mention that your images are dynamically generated you'd probably have code in your entity

Re: Cocoa Application to front End for MySQL Database

2008-11-07 Thread Dave DeLong
You may be interested in the Sequel Pro project, an open-source Cocoa frontend for MySQL databases: http://code.google.com/p/sequel-pro/ Cheers, Dave On Nov 7, 2008, at 8:33 AM, Luis Rojas wrote: Hi, I would like to know what is the best way you can access MySQL from a cocoa application,

Cocoa Application to front End for MySQL Database

2008-11-07 Thread Luis Rojas
Hi, I would like to know what is the best way you can access MySQL from a cocoa application, since i know there is no CoreData Storage for MySQL, what other methods we have of actually connecting from Cocoa to a Data Base? Thanks in advance, Luis R. Rojas

Open/Show window from external NIB

2008-11-07 Thread Daniel
Hi everyone, I'm working on an Input Manager and I need to display a window from an external bundle (the bundle of the Input Manager). I've just a created a default Window NIB resource, and unchecked "Visible at launch" and "Release When Closed". I'm performing this code for showing the window

Re: Issue with the downloading url

2008-11-07 Thread Jean-Daniel Dupas
Check the server response. NSError *error; NSHTTPURLResponse *response = nil; NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://yp.shoutcast.com/sbin/tunein-station.pls? id=9907"]]; NSData *data

Re: Issue with the downloading url

2008-11-07 Thread Arnab Ganguly
[data writeToFile:@"/tmp/station.pls" atomically:YES]; ->Works perfectly when I download a html file for example I change the code to [data writeToFile:@"/tmp/station.html" atomically:YES] Issue I get is NSError *error; NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"

Re: Issue with the downloading url

2008-11-07 Thread Arnab Ganguly
Hi Al, Thanks for all help but unfortunately the problem still persists.With the below code the data is not null but when I write to a file I don't get anything. I have used the following for writing [data writeToFile:@"/tmp/station.pls" atomically:YES]; but the file size remains zero. Also I tried

Re: release and reference counting query

2008-11-07 Thread Calum Robertson
Thanks for the solution guys - I fully understand now! Also thanks for the advice and the super quick replies. C On 7 Nov 2008, at 12:17, Roland King <[EMAIL PROTECTED]> wrote: the iPhone documentation - I guess because it's recent, tends to use properties quite a lot. You'll even find in t

RE: Link error: _open$UNIX2003

2008-11-07 Thread mahaboob
Thanks, I managed to solve it. I build the QuickLite in Tiger. Then it is used in my project and build against Tiger. Now it is working well both in Tiger and Leopard. Thanks again, Mahaboob > Thanks for your consideration. > Now I build QuickLite as you mentioned. When the application builds by

Re: release and reference counting query

2008-11-07 Thread Roland King
the iPhone documentation - I guess because it's recent, tends to use properties quite a lot. You'll even find in the class description documentation that things are documented as properties instead of setXXX and XXX methods (and it tells you which are readwrite and readonly etc.). In this

Re: release and reference counting query

2008-11-07 Thread Filip van der Meeren
I am not sure, but I am guessing the class that self refers to, defined viewController as a property that retains the object assigned to it. Remember, there is a difference between "self->" and "self.". The -> refers to the variables of the object, and "." refers to the properties. On 07 N

release and reference counting query

2008-11-07 Thread Calum Robertson
Hi, Below is a snippet of code from the "Creating an iPhone Application" document from the iPhone DevCenter. I'm not clear as to why this works. My understanding is that when [UIViewController alloc] is executed, the retain count is 1 and then when [aViewController release] is called, the retai

RE: Link error: _open$UNIX2003

2008-11-07 Thread mahaboob
Thanks for your consideration. Now I build QuickLite as you mentioned. When the application builds by checking Build Active Architecture Only in Build settings it is working well but, when I'm building against Tiger I got errors like: collect2: ld returned 1 exit status "_QLReco

Re: UI help: visibly disabling NSImageView

2008-11-07 Thread chaitanya pandit
Well generally you can play with cursors to show a point cursor when not editable, cross hair when you allow resizing and hand when allow dragging On 07-Nov-08, at 3:47 PM, Brad Peterson wrote: Hi all, Does anyone have any ideas on how to _visually_ indicate that an NSImageView is not ed

UI help: visibly disabling NSImageView

2008-11-07 Thread Brad Peterson
Hi all, Does anyone have any ideas on how to _visually_ indicate that an NSImageView is not editable? Since it doesn't really do anything different when it's editable or not editable, it's tough for the user to tell which state is which. I'm thinking that maybe there's a way to make the image s

Core Animation perspective question

2008-11-07 Thread chaitanya pandit
Hi List, iWas going through the Flipr sample app (http://www.brockerhoff.net/src/index.html ) and am trying to understand how to compute the perspective. I could implement the flipping around the Y-Axis in one of my views, but i can't figure out how do i compute the perspective if i would hav

Link error: _open$UNIX2003

2008-11-07 Thread mahaboob
I have developed a database based application using QuickLite Framework in Leopard and Xcode3.1. I need to package it as compatible with Tiger. So in build setting I configured like 1, Changed the configuration to All Configurations 2, Base SDK to Mac OS X 10.4 3, Debug information format to DWA