Re: NSXMLParser frees itself on error?

2009-05-04 Thread Stephen J. Butler
On Fri, May 1, 2009 at 1:59 AM, Mike Manzano wrote: > Note that the parser is aborted and released in here. This seems to work > just fine, multiple times, with no problems. However, if I give it a URL to > non-XML data (should be a 404 page somewhere), it calls > parser:parseErrorOccurred: as exp

Re: Writable dir for non-admin user outside user's dir

2009-05-04 Thread Erg Consultant
That's a pretty lame approach considering that Apple hides theirs. Erg From: Michael Ash To: cocoa-dev Sent: Thursday, April 30, 2009 9:55:36 PM Subject: Re: Writable dir for non-admin user outside user's dir On Thu, Apr 30, 2009 at 7:24 PM, Erg Consultant

Re: Crashing resetting or releasing an NSManagedObjectContext

2009-05-04 Thread Daniel Kennett
Good morning all, Thanks for your reply. Yes, I have code that triggers relationship faults, and removing that code solves the problem. However, I need that code to work! :-) When fetching the data from the object tree, I call a method on the pet instance called -pertinentActions. This me

Re: Installer has admin permissions but installer plugins don't

2009-05-04 Thread Alastair Houghton
On 1 May 2009, at 01:31, Erg Consultant wrote: I am using PackageMaker 2.1.1 from Xcode 2.5. My installers have to work with 10.4/10.5. My built installer prompts for an admin password before install, but if my installer plugin tries to do any file operations on anything inside /Applicati

Re: Modifying NSTableView cell data just prior to invoking field editor

2009-05-04 Thread Alastair Houghton
On 1 May 2009, at 04:49, Jim Correia wrote: On Thu, Apr 30, 2009 at 11:38 PM, K. Darcy Otto wrote: Option 2: Moving the text displayed by the NSTableView to the right by some way other than inserting spaces. This might be the best way, alleviating the need for a custom field editor and

Cocoa Drawing

2009-05-04 Thread DairyKnight
Hi, all I'm trying to build a simple scribble program with Cocoa, and got some questions I couldn't solve. Hope someone here could help. 1. How can I perform a proper drawing in somewhere else rather than drawRect: ? Like the Win32 GetDC(HWND) and ReleaseDC. (Sorry I'd use lots of Win32

Storing a password (iPhone)

2009-05-04 Thread Jelle De Laender
Hi What is the best way to store a password on the iPhone? I can't take the MD5 hash because I need to be able to work with the original password. Should I create a custom class (with 2 strings) and save them with NSKeyedArchiver with the idea: nobody will read the files (it's impossible:

Re: Why is NSString->FSRef so hard?

2009-05-04 Thread Uli Kusterer
On 29.04.2009, at 15:15, Mark Douma wrote: If you are working with file paths, you shouldn't be using componentsSeparatedByString:, nor should you be defining "/" to be the component you should be separating by. What if someone had your app inside of a folder they named "Apps/Utilities"? The

Re: Why is NSString->FSRef so hard?

2009-05-04 Thread Uli Kusterer
On 30.04.2009, at 13:12, Alastair Houghton wrote: 3. AFAIK the Carbon layer maps them back again. Carbon's filesystem functions are implemented on top of the BSD layer, not alongside it as some people assume (OK, OK, there is the ".vol" special folder and there are a couple of additional en

Re: Creating a custom hierarchical list view

2009-05-04 Thread jonat...@mugginsoft.com
On 30 Apr 2009, at 21:55, Daniel Thorpe wrote: Hi everyone, I'm wondering if anyone can put me on the right path to create the following custom view... I'm trying to write a new view, to displaying hierarchical data which only uses one column. To navigate though the hierarchy, double cli

Re: Modifying NSTableView cell data just prior to invoking field editor

2009-05-04 Thread K. Darcy Otto
Yes, I was inserting spaces to achieve a fixed-width indent; things are working much better now, thanks to your suggestion. I tried overriding -titleRectForBounds in my NSTextViewCell subclass, but for some reason, it never gets called (not really sure why). What I ended up doing was overr

Re: NSXMLParser frees itself on error?

2009-05-04 Thread Keary Suska
On May 1, 2009, at 12:59 AM, Mike Manzano wrote: I have an NSXMLParser doing parsing the contents of a URL. It is allocated like this: _showsParser = [[NSXMLParser alloc] initWithContentsOfURL:url]; Given a good URL to a parsable XML document, its parserDidEndDocument: method calls

Re: NSSavePanel runModalForDirectory, set name selection?

2009-05-04 Thread Corbin Dunn
On Apr 30, 2009, at 1:28 PM, Henrietta Read wrote: Question, I'm passing a file name such as 'MyTextFile.txt' to NSSavePanel runModalForDirectory. When the panel appears the entire string is selected, but I would rather that just 'MyTextFile' is selected. Is it possible to set the selectio

Re: ObjectAlloc and objects that should have been released

2009-05-04 Thread Miles
Hi guys- I'm still really struggling with this. I keep creating the most simple examples I can and ObjectAlloc continues to show objects as 'created and still living' when they really shouldn't be. At this point I would probably just assume it's a bug in ObjectAlloc or elsewhere but over time my a

Re: NSURLConnection unhappiness

2009-05-04 Thread Nick Hristov
Thank you all for your suggestions. I will use the runloop to wait on response. One more comment on self->ivar... I used this approach because using [self connection] or self.connection (they are both the same thing) amount to an extra message call. Nick On Thu, Apr 30, 2009 at 11:09 AM, Jeff Jo

Re: Threadsafe function help

2009-05-04 Thread Michael Ash
On Fri, May 1, 2009 at 1:21 AM, Ken Tozier wrote: > > On May 1, 2009, at 12:59 AM, Michael Ash wrote: > >> "It locks up" is not a very useful description. Use the debugger and >> find out *where* it locks up. > > I bracket calls to my KCLog function like so > NSLog(@"about to call KCLog"); > KCLog

Re: NSXMLParser frees itself on error?

2009-05-04 Thread Jesper Storm Bache
I have not used NSXMLParser, but as far as I can tell from your email, cleanupShowParsing is called in response to a call to the parser delegate. In that case, you should not release the parser (because it is calling your delegate and is on the stack). Try using autorelease instead. Jesper

Re: #import errors and @class warnings

2009-05-04 Thread Jeremy Pereira
On 30 Apr 2009, at 17:16, Dave DeLong wrote: Hi Andre, #import means that the compiler will only include the file once, thus eliminating re-declaration errors. It does not, however, eliminate the problems introduced by circular dependencies (which is what you've got going here). As a

Re: #import errors and @class warnings

2009-05-04 Thread Dave DeLong
On May 1, 2009, at 11:32 AM, Jeremy Pereira wrote: On 30 Apr 2009, at 17:16, Dave DeLong wrote: (Except protocols, which I don't know of a way to forward declare) @protocol MyProtocol ; Oh, well, that would make sense. =) Thanks! Dave ___ Co

Re: Drawing Across NSTableView Columns

2009-05-04 Thread Uli Kusterer
On 27.04.2009, at 00:29, K. Darcy Otto wrote: I'm attempting to model a real-world table structure with an NSTableView. Here is what the table structure might look like on paper (warning: ASCII art ahead): I hope you're not trying to duplicate the Windows table view with its lines indic

sheets

2009-05-04 Thread Jason Todd Slack-Moehrle
Hi All, Does anyone have an example for creating a 'sheet' without using Interface Builder at all? I just am trying to display a sheet with some text and an OK button and have it dismissed when pressed. -Jason ___ Cocoa-dev mailing list (Cocoa-de

Re: How to make NSSplitView not dragable

2009-05-04 Thread Uli Kusterer
On 28.04.2009, at 18:44, Ashish Tiwari wrote: I have a horizontal NSSplitView, I want the splitter bar should remain in a fixed postion and user should not be able to change size of upper subview or lower subview by dragging it. Note: Split bar should be visible but not be drag able. You

Re: question about mutable vs. non-mutable

2009-05-04 Thread Erik Buck
The whole debate about mutable and immutable classes, the inheritance hierarchy, what it means to return a pointer to a supposedly immutable object, what it means to store a pointer to a supposedly immutable object, the "substitutability" principle of object oriented programming, whether altern

NSOutlineView with NSImage and NSStrings

2009-05-04 Thread iseecolors
I would like to have an image and a string together in my NSOutlineView, but it is not clear to me how to do this. Basically I want to do what iTunes appears to do (icons in front of the text descriptors). My initial thought was to return and NSArray that contains and NSImage and NSStrin

Discussion on how to draw text like that seen in toolbars

2009-05-04 Thread Alex Kac
I know there was a discussion about this a few months ago on this list, but I cannot find the right terms to search for. The discussion was how to draw text so that it was sunken much like you see in the toolbar. I just remember there was a specific way recommended to do it and I can't find

Make connections between One Button and two different NSObjects?

2009-05-04 Thread Jon
can you make two connections between One Button and two different NSObjects? is it possible? to have two different IBActions go off? or some other way of controlling a single button from two different objects? I want a normal controller, but then i want to hide, and unhide the button

Question of .png and 'transparency'

2009-05-04 Thread Smith, Steven (MCP)
I'm not sure this is the list for this question, so apologies in advance if not. I'm trying to work on a game that has several pieces. In my design it makes sense (I think) to you several .png files that would be overlayed on the playing board. My questions: a) should my code do the transparen

NSPredicate & relationship data?

2009-05-04 Thread Greg Robertson
How do I create a search predicate to include an attribute of another entity to which there is a relationship? here is a simplified example of what I mean: Entity Meal with the attributes: type and foods, foods has a one to many relationship with the Entity Food Entity Food with attributes: name

NSMetadataQuery and /usr/local

2009-05-04 Thread Gerriet M. Denkmann
In a Cocoa app of mine I do use NSMetadataQuery with and setSearchScopes: {some array including "/usr/local/include"). I know that two files in my /usr/local/include do contain the string "u_versionToString". Nothing is found. Probably because Spotlight in it's infinite wisdom did dec

NSWorkspaceDidWakeNotification crash

2009-05-04 Thread Trygve Inda
I call: [[[NSWorkspace sharedWorkspace] notificationCenter] addObserver:self selector:@selector(wakeNotification:) name:NSWorkspaceDidWakeNotification object:nil]; -(void)wakeNotification:(NSNotification*)note { [self wake:nil] } -(void)wakeNotification:(NSNotification*)note { [self perfor

Audio recording of internal sound data

2009-05-04 Thread John Hall
I've developed a commercial application that outputs MIDI instrumental sounds combined with the playback of AIFF files. I'd like to be able to record the app's output to a digital audio file like AIFF or MP3, etc. I've looked at Apple's docs to figure out how to do it but can't seem to find

Re: Writable dir for non-admin user outside user's dir

2009-05-04 Thread Uli Kusterer
On 01.05.2009, at 01:24, Erg Consultant wrote: One other thing I should mention: the location has to be non-obvious as the files being written are DRM files and although I make them invisible, so all variants of tmp, etc are out. There's a handy tool called FSEventer that shows me every fi

[ANN] FeedbackReporter to Mantis integration

2009-05-04 Thread Simone Tellini
Hi, I've just written a small php script to integrate the FeedbackReporter framework by Torsten Curdt with a Mantis bugtracking system. For links, comments and suggestions: http://tellini.info/blog/archives/81-FeedbackReporter-and-Mantis-integration.html -- Simone Tellini http://tellini.inf

Re: Installer has admin permissions but installer plugins don't

2009-05-04 Thread Fritz Anderson
On 30 Apr 2009, at 7:31 PM, Erg Consultant wrote: How can I get my installer plugin to run with the same admin permissions as my installer runs with? You can't. Plug-ins work as part of the Installer.app application, which always runs with the privileges of the user who started it. Privil

Custom binding like NSCollectionView

2009-05-04 Thread Alejandro Rodriguez
Hello all, I'm making a custom controller that should behave like a mix of NSTableView and NSCollectionView but I'm having trouble with makings bindings for it. I want to be able to make bindings like the ones used in NSCollectionView (binded to the arrangedObjects keypath of a NSArrayCo

Re: Repositioning the Field Editor

2009-05-04 Thread Uli Kusterer
On 28.04.2009, at 04:19, K. Darcy Otto wrote: I have a field editor which I need to reposition in my tableView – specifically, I need to move it a few pixels to the right. The following post: I think it's kinda odd to want to change that in the field editor. The field editor is a reusab

Resolving bonjour name (MyMac.local.)

2009-05-04 Thread Alexander Hartner
When trying to connect to my website using NSURLConnection as shown below the application fails rather frequently, as it's not able to resolve the server name (MyMac.local.). This url address was discovered previously using bonjour. Usually this issue is resolved by opening up Safari Bonjou

FTP Client Framework

2009-05-04 Thread Ammar Ibrahim
I'm building a client/server app. The client and server communicate using FTP. I added my own custom commands, since this application will be in a controlled environment. The server part is done, now I'm working on the client. What is the easiest framework/class to embed in my app? I looked into Co

Re: NSXMLParser frees itself on error?

2009-05-04 Thread Fritz Anderson
On 1 May 2009, at 1:59 AM, Mike Manzano wrote: My question is it the case that NSXMLParser frees itself if it encounters an error, but does NOT free itself on a successful parse of a document? When parser:parseErrorOccurred: is sent, the parser is still running. You can't release it in th

Re: NSXMLParser frees itself on error?

2009-05-04 Thread Kyle Sluder
Initializers must call -[self release] in case of an error. This means that in response to an error that occurs as part of initialization, you must not release that object. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

NSImage initWithContentsOfURL slowness

2009-05-04 Thread Nirias
I am trying to grab an image from a network camera but performance is horrible.  My code is: NSLog(@"refreshImage"); url = [NSURL URLWithString:@"http://192.168.1.253/SnapshotJPEG?Resolution=640x480&Quality=Precision";]; NSLog(@"  setURL"); NSImage *image = [NSImage alloc]; NSLog(@"  allocated

Undo with NSTextView in HICocoaView

2009-05-04 Thread Ryan Joseph
Are there any special steps for adding undo support for NSTextView if it's embedded in a HICocoaView? All the other edit commands are working but undo just gives me a beep. I created the NSTextView programatically also so maybe I simply forget to include something, although I'm not sure wha

Why is -makeWindowControllers getting called twice?

2009-05-04 Thread David Scheidt
I'm trying to figure out why my NSPersistantDocuement subclass's - makeWindowControllers is getting called twice. I'm also trying to figure out why a nib that I'm trying to load from a viewcontroller created by the window controller made by -makeWindowController isn't loading. I'm willing

Re: NSImage initWithContentsOfURL slowness

2009-05-04 Thread Nirias
More information: My testing wasnt thorough enough: While Firefox always loads rapidly, Safari has the same delay as cocoa, and there is a clear pattern. Two loads in 1-2 seconds, then the 3rd load takes a really long time. This pattern repeats with every 3rd load delayed, whether loading NSImag

Creating a NSHTTPCookie

2009-05-04 Thread Chris
Hello, I'm trying to create a NSHTTPCookie with this code: //dictionary of attributes for the new cookie NSDictionary *newCookieDict = [NSMutableDictionary dictionaryWithObjectsAndKeys:@".example.com", NSHTTPCookieDomain,

Integer as key in NSMutableDictionary

2009-05-04 Thread Weydson Lima
Hi, Assume that: NSMutableDictionary *result = [[NSMutableDictionary alloc] initWithCapacity:10]; NSInteger ID; And I add objects to the dictionary: [result setObject:[NSArray arrayWithObjects: {... objects ...}

How to change the case of letters

2009-05-04 Thread rethish
Hi, I am using the action methods uppercaseWord: and lowercaseWord: to change the case of selected word. -(IBAction)changecase:(id)sender { if([[fontCasePopup titleOfSelectedItem] isEqualToString:@"A"]) { [textView uppercaseWord:sender]; } else if([[fontCasePopup titleOfSele

NSPredicate & relationship data?

2009-05-04 Thread Greg Robertson
How do I create a search predicate to include an attribute of another entity to which there is a relationship? here is a simplified example of what I mean: Entity Meal with the attributes: type and foods, foods has a one to many relationship with the Entity Food Entity Food with attributes: name

Problem with the list?

2009-05-04 Thread Robert Martin
Hi, I haven't received any posts for several days now, on any of the Apple lists I'm subscribed to...Is this a known problem, or should I check with my ISP? Thanks, Rob ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post ad

Creating a NSHTTPCookie

2009-05-04 Thread Chris
Hello, I'm trying to create a NSHTTPCookie with this code: //dictionary of attributes for the new cookie NSDictionary *newCookieDict = [NSMutableDictionary dictionaryWithObjectsAndKeys:@".example.com", NSHTTPCookieDomain,

Full content of "Cocoa Design Patterns" available as "Rough-Cut" on-line

2009-05-04 Thread Erik Buck
The full content of the forthcoming book, "Cocoa Design Patterns," is now available as "Rough-Cut" on-line: http://my.safaribooksonline.com/9780321591210?portal=informit ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin re

Re: NSPopUpButtonCell Keeps on Trackin'! Demo, Movie

2009-05-04 Thread Jerry Krinock
I was able to fix this thing based on Jim Correia's clue: On 2009 Apr 26, at 15:29, Jim Correia wrote: What you've done is started a menu tracking session while the table view was already in the middle of a mouse tracking session. So I removed my override of -[NSTableView tableView:mo

Programmatically Changing Display(s) to Greyscale

2009-05-04 Thread Grant Erickson
While the Displays preference pane doesn't appear to allow it, the Universal Access preference pane allows setting all active, online displays to greyscale mode. However, when using CGDisplayAvailableModes, the only modes that appear for the current display width and height are 8-bit, 16-bit and 3

NSOutlineView with NSImage and NSStrings

2009-05-04 Thread iseecolors
I would like to have an image and a string together in my NSOutlineView, but it is not clear to me how to do this. Basically I want to do what iTunes appears to do (icons in front of the text descriptors). My initial thought was to return and NSArray that contains and NSImage and NSStrin

Re: Cocoa Drawing

2009-05-04 Thread Alex Kac
On May 1, 2009, at 5:20 AM, DairyKnight wrote: I'm trying to build a simple scribble program with Cocoa, and got some questions I couldn't solve. Hope someone here could help. 1. How can I perform a proper drawing in somewhere else rather than drawRect: ? Like the Win32 GetDC(HWND) and

Re: Crashing resetting or releasing an NSManagedObjectContext

2009-05-04 Thread Alexander Spohr
You are still having the same error. All your objects in the relationships are fetched. Therefore they are owned by the NSManagedObjectContext. You kill the NSManagedObjectContext by releasing it. After that point you are not allowed to touch any of its fetched objects. But you hand them ou

Re: Cocoa Drawing

2009-05-04 Thread Uli Kusterer
On 01.05.2009, at 12:20, DairyKnight wrote: Hi, all I'm trying to build a simple scribble program with Cocoa, and got some questions I couldn't solve. Hope someone here could help. 1. How can I perform a proper drawing in somewhere else rather than drawRect: ? Like the Win32 GetDC(H

Re: Storing a password (iPhone)

2009-05-04 Thread Greg Guerin
Jelle De Laender wrote: What is the best way to store a password on the iPhone? ... Maybe I can simply use the NSUserDefaults? Use Keychain Services. Google keywords: iphone keychain -- GG ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.co

Re: Cocoa Drawing

2009-05-04 Thread Nick Zitzmann
On May 1, 2009, at 4:20 AM, DairyKnight wrote: 1. How can I perform a proper drawing in somewhere else rather than drawRect: ? Like the Win32 GetDC(HWND) and ReleaseDC. (Sorry I'd use lots of Win32 analogy, coz I've been a Win32 developer for quite a while.) You can lock and then unlock

Re: Storing a password (iPhone)

2009-05-04 Thread Greg Parker
On May 1, 2009, at 4:58 AM, Jelle De Laender wrote: What is the best way to store a password on the iPhone? I can't take the MD5 hash because I need to be able to work with the original password. Should I create a custom class (with 2 strings) and save them with NSKeyedArchiver with the ide

Re: ObjectAlloc and objects that should have been released

2009-05-04 Thread Bill Bumgarner
On May 1, 2009, at 8:32 AM, Miles wrote: For example, I have created a new project where the delegate creates and immediately releases a view controller that doesn't have anything in it at all. Object alloc still shows a handful of objects as created and still living, such as: #Object

Re: Cocoa Drawing

2009-05-04 Thread Marcel Weiher
On May 1, 2009, at 3:20 , DairyKnight wrote: I'm trying to build a simple scribble program with Cocoa, and got some questions I couldn't solve. Hope someone here could help. 1. How can I perform a proper drawing in somewhere else rather than drawRect: ? Like the Win32 GetDC(HWND) and R

Re: NSXMLParser frees itself on error?

2009-05-04 Thread Stephen J. Butler
On Fri, May 1, 2009 at 11:18 AM, Jesper Storm Bache wrote: > I have not used NSXMLParser, but as far as I can tell from your email, > cleanupShowParsing is called in response to a call to the parser delegate. > In that case, you should not release the parser (because it is calling your > delegate

Re: NSURLConnection unhappiness

2009-05-04 Thread Jeff Johnson
Yes, those result in a message call, though it's a very fast message call. Within your instance methods, however, you can just access the ivar directly, e.g, "connection" without a message call and without "self->connection". -Jeff On May 1, 2009, at 11:00 AM, Nick Hristov wrote: Thank

Re: NSURLConnection unhappiness

2009-05-04 Thread Alexander Spohr
Am 01.05.2009 um 18:00 schrieb Nick Hristov: One more comment on self->ivar... I used this approach because using [self connection] or self.connection (they are both the same thing) amount to an extra message call. Then just use ivar, without self-> It amounts to the same (no call) but lo

Re: sheets

2009-05-04 Thread Nick Zitzmann
On May 1, 2009, at 1:22 PM, Jason Todd Slack-Moehrle wrote: Does anyone have an example for creating a 'sheet' without using Interface Builder at all? I just am trying to display a sheet with some text and an OK button and have it dismissed when pressed. Have you tried NSBeginAlertSheet()

Re: sheets

2009-05-04 Thread Alexander Spohr
Have a look at NSAlert: "You use an NSAlert object to display an alert, either as an application-modal dialog or as a sheet attached to a document window." atze Am 01.05.2009 um 21:22 schrieb Jason Todd Slack-Moehrle: Hi All, Does anyone have an example for creating a 'sheet' wit

Re: Storing a password (iPhone)

2009-05-04 Thread Nicko van Someren
On 1 May 2009, at 04:58, Jelle De Laender wrote: What is the best way to store a password on the iPhone? I can't take the MD5 hash because I need to be able to work with the original password. Should I create a custom class (with 2 strings) and save them with NSKeyedArchiver with the idea:

Re: NSOutlineView with NSImage and NSStrings

2009-05-04 Thread Corbin Dunn
On May 1, 2009, at 2:59 PM, iseecolors wrote: I would like to have an image and a string together in my NSOutlineView, but it is not clear to me how to do this. Basically I want to do what iTunes appears to do (icons in front of the text descriptors). My initial thought was to return an

Re: Make connections between One Button and two different NSObjects?

2009-05-04 Thread I. Savant
You're probably going to have to be more clear about what you want to do. You seem to be asking a few different questions: > can you make two connections between One Button and two different NSObjects? Yes. What kind of connections are you interested in? Do you instead mean target/action conn

Re: NSOutlineView with NSImage and NSStrings

2009-05-04 Thread Jerry Krinock
On 2009 May 01, at 14:59, iseecolors wrote: I would like to have an image and a string together in my NSOutlineView, but it is not clear to me how to do this. Basically I want to do what iTunes appears to do (icons in front of the text descriptors). My initial thought was to return and

Re: Question of .png and 'transparency'

2009-05-04 Thread I. Savant
On Fri, May 1, 2009 at 9:11 PM, Smith, Steven (MCP) wrote: > a) should my code do the transparency for each piece so the background (say a > starfield) show through > > b) if not my code would the .png already be 'set' with transparency in place > > I've not done game UI befores so this is new t

drawing image

2009-05-04 Thread Livio Isaia
I have a custom NSButtonCell named MyButtonCell with a drawing method: - (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView { cellFrame = [self imageRectForBounds:cellFrame]; [[self image] drawInRect:cellFrame fromRect:NSZeroRect operation:NSCompositeCopy frac

UIWebView w/o the scrolling?

2009-05-04 Thread Mike Manzano
Is it possible to have a web view that doesn't scroll? I'd like to embed a web view in a table cell and have the table view machinery take care of the scrolling. The effect I'm after is for the user to touch a cell in a table, and have that table visually expand to show a rendered HTML page

Re: sheets

2009-05-04 Thread Dave Keck
Check out NSAlert, specifically +alertWithMessageText:... and -beginSheetModalForWindow:... ___ 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-a

Re: NSXMLParser frees itself on error?

2009-05-04 Thread Mike Manzano
I tried doing an autorelease from the delegate and that seemed to work fine. Still not sure if that's entirely correct. I was under the impression that -parse was asynchronous, so therefore I couldn't call release right after it, but if it is indeed synchronous, I'll just stick the release

Key window/first responder handling with NSDrawer containing NSTextView

2009-05-04 Thread Luke Evans
I have an NSDrawer on a window that acts as an optional 'pop out' editor providing a more convenient way to edit text in smaller field in the window's main UI. I've used the occasional drawer before in cases where optional extra information/navigation is useful, and aside from one bug I know

Re: Discussion on how to draw text like that seen in toolbars

2009-05-04 Thread Dave Keck
While I'm not familiar with the original discussion, I will say that the effect you're going for can easily be created using a shadow. If it doesn't look right, the values you're using to create the shadow probably need tweaking. For the recessed look, I use a shadow offset of (0.0, 1.1) or (0.0, -

Re: NSXMLParser frees itself on error?

2009-05-04 Thread Ed Wynne
On May 3, 2009, at 5:38 PM, Kyle Sluder wrote: Initializers must call -[self release] in case of an error. This means that in response to an error that occurs as part of initialization, you must not release that object. Initializers that call -[self release], for any reason, had also bette

Re: Storing a password (iPhone)

2009-05-04 Thread Sidney San Martín
You can use the iPhone's keychain (search for that term) to store passwords. Start by taking a look at these two pages: http://developer.apple.com/iphone/library/documentation/Security/Conceptual/keychainServConcepts/01introduction/introduction.html http://developer.apple.com/iphone/library/docume

Re: Storing a password (iPhone)

2009-05-04 Thread Sidney San Martín
You can use the iPhone's keychain (search for that term) to store passwords. Start by taking a look at these two pages: http://developer.apple.com/iphone/library/documentation/Security/Conceptual/keychainServConcepts/01introduction/introduction.html http://developer.apple.com/iphone/library/docume

Re: Writable dir for non-admin user outside user's dir

2009-05-04 Thread Michael Ash
On Fri, May 1, 2009 at 3:28 AM, Erg Consultant wrote: > That's a pretty lame approach considering that Apple hides theirs. Seems like a poor example to me, given that the path to the iTunes DRM directory was posted right here in this very thread (albeit not completely correct, but close enough to

Re: Integer as key in NSMutableDictionary

2009-05-04 Thread Jason Foreman
On May 4, 2009, at 2:22 AM, Weydson Lima wrote: I am getting warnings when adding integers in the array and assigning the integer ID as a key. The code does work though, but I am guessing there is a better way to accomplish what I want. I know that these methods are expecting pointers as paramet

Re: Problem with the list?

2009-05-04 Thread Тимофей Даньшин
Same here. Didn't receive anything from the first of May till today. They must have been celebrating the international workers' day :). On May 4, 2009, at 6:31 PM, Robert Martin wrote: Hi, I haven't received any posts for several days now, on any of the Apple lists I'm subscribed to...Is thi

Re: Problem with the list?

2009-05-04 Thread Alexander Spohr
Same problem here. Messages come in again since today. But my answers are delayed as well. atze Am 04.05.2009 um 16:31 schrieb Robert Martin: Hi, I haven't received any posts for several days now, on any of the Apple lists I'm subscribed to...Is this a known problem, or should I

NSTableView, 2mln rows, looks bad.

2009-05-04 Thread Тимофей Даньшин
Hello. I need to have a tableView with about 2 million rows, and that figure may actually be bigger. But the table looks awfully bad in that case: you get artifacts when scrolling, the text in the rows does not coincide with the alternate bluish and white stripes, and if you click on a row

Custom log file for NSLog

2009-05-04 Thread Randall Meadows
I want to have a custom log file for my app, so that my client can send it to me when things go "different". In reading the docs for NSLog, it seems that it is just a front-end for asl. So here's what I thought should work: directories = NSSearchPathForDirectoriesInDomains(NSLibraryDirecto

Re: How to change the case of letters

2009-05-04 Thread Тимофей Даньшин
It looks like, if you want to change the case of a particular letter (say, all occurrences, letter "a"), you will have to iterate through all the chars in your textView, check if they are "a"s, if they are upper or lower case, and change their case accordingly. That is, if I understood your

Re: Why is -makeWindowControllers getting called twice?

2009-05-04 Thread Kyle Sluder
Note these two lines: On Sun, May 3, 2009 at 9:38 PM, David Scheidt wrote: > #0  -[MyDocument makeWindowControllers] (self=0x10471d0, _cmd=0x9464d69c) at > #0  -[MyDocument makeWindowControllers] (self=0x105d5b0, _cmd=0x9464d69c) at The self pointers are different (0x10471d0 vs. 0x105d5b0): you

Re: Integer as key in NSMutableDictionary

2009-05-04 Thread Nick Zitzmann
On May 4, 2009, at 1:22 AM, Weydson Lima wrote: I am getting warnings when adding integers in the array and assigning the integer ID as a key. The code does work though, but I am guessing there is a better way to accomplish what I want. I know that these methods are expecting pointers as parame

Re: Integer as key in NSMutableDictionary

2009-05-04 Thread Alexander Heinz
On May 4, 2009, at 3:22 AM, Weydson Lima wrote: I know that these methods are expecting pointers as parameters and I am passing a scalar. So, what's the best way to approach that? That's correct. You really shouldn't put any scalar types in an NSDictionary (or any other container type in the

Re: Integer as key in NSMutableDictionary

2009-05-04 Thread Ken Thomases
On May 4, 2009, at 2:22 AM, Weydson Lima wrote: NSMutableDictionary *result = [[NSMutableDictionary alloc] initWithCapacity:10]; NSInteger ID; And I add objects to the dictionary: [result setObject:[NSArray arrayWithObjects: {... objects ...}

Re: Creating a NSHTTPCookie

2009-05-04 Thread Nick Zitzmann
On May 4, 2009, at 12:58 AM, Chris wrote: When I try to set the newly created cookie to the sharedHTTPCookieStorage it doesn't ever get set. Am I doing something wrong? Possibly. From the -setCookie: documentation: "This method will accept the cookie only if the receiver’s cookie accep

Re: Why is -makeWindowControllers getting called twice?

2009-05-04 Thread Tommy Nordgren
Are the listing from two different GDB sessions? Otherwise, judging from the value of self in [MyDocument makeWindowControllers], you have TWO instances of the MyDocument class. Is this intentional? On May 4, 2009, at 3:38 AM, David Scheidt wrote: I'm trying to figure out why my NSPersistantDo

Re: NSXMLParser frees itself on error?

2009-05-04 Thread Sean McBride
On 5/3/09 5:38 PM, Kyle Sluder said: >Initializers must call -[self release] in case of an error. This >means that in response to an error that occurs as part of >initialization, you must not release that object. Actually, they should call [super dealloc] not [self release], see:

Re: Installer has admin permissions but installer plugins don't

2009-05-04 Thread Kyle Sluder
On Sat, May 2, 2009 at 5:07 PM, Fritz Anderson wrote: > For most purposes, it's enough for the plugin to write what it has learned > into /tmp, for one of the scripts to act on. Do not use /tmp. Use NSTemporaryDirectory, which on Leopard is a user-specific directory. Using /tmp opens up a class

Re: NSXMLParser frees itself on error?

2009-05-04 Thread Kyle Sluder
On Mon, May 4, 2009 at 5:05 PM, Sean McBride wrote: > Actually, they should call [super dealloc] not [self release], see: You're right. Brain fart. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin request

Re: Discussion on how to draw text like that seen in toolbars

2009-05-04 Thread Jean-Daniel Dupas
Le 2 mai 09 à 00:42, Alex Kac a écrit : I know there was a discussion about this a few months ago on this list, but I cannot find the right terms to search for. The discussion was how to draw text so that it was sunken much like you see in the toolbar. I just remember there was a specific

Re: question about mutable vs. non-mutable

2009-05-04 Thread Kyle Sluder
On Fri, May 1, 2009 at 4:54 PM, Erik Buck wrote: > There is nothing to add now (13 years later): That's a bit bold, isn't it? Sure, the primitives and research might not have changed all that much, but the technology sure has. We now have GPGPU and the prospect of manycore Larabee, both thrusti

Re: NSURLConnection unhappiness

2009-05-04 Thread Kyle Sluder
On Fri, May 1, 2009 at 12:00 PM, Nick Hristov wrote: > One more comment on self->ivar... I used this approach because using [self > connection] or self.connection (they are both the same thing) amount to an > extra message call. This is true, and sometimes you want to do this, while other times y

  1   2   >