[iPhone] GameKit to implement Voice Chat over Internet

2010-06-24 Thread Tharindu Madushanka
Hi, I would like to clarify about this thing. Is it possible to implement Voice Chat between two iPhones or iPods that are not in the same network using GameKit framework ? If possible, could I find some info about how it could be done any sample code or articles on Implementing Voice Chat over

Re: iPhone TabBarController and NavigationController with Core Data

2010-06-24 Thread Sandro Noël
please ignore: I've figured it out ___ 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.com Help/Unsubscribe/Update your

Re: LightTable Sample CoreAnimation Code

2010-06-24 Thread Ken Ferry
NSImage is also mentioned in the header comment for CALayer's contents property as of 10.6. -Ken On Jun 23, 2010, at 7:13 PM, Kyle Sluder wrote: > On Wed, Jun 23, 2010 at 7:09 PM, Alexander Heinz > wrote: >> I've been attempting to make sense of Apple's "LightTable" sample code for >> Core

Re: CCCrypt()

2010-06-24 Thread Graham Lee
On 24 Jun 2010, at 07:43, Richard Hood wrote: > does anyone know in which library the CCCrypt() routine is defined? I've > linked against libcrypto.dylib where it's defined in the header and > libSystem.dylib where the man page says it is but I'm still getting undefined > symbol errors on link.

Re: Restoring a NSTreeController selection

2010-06-24 Thread jonat...@mugginsoft.com
On 24 Jun 2010, at 01:43, Markus Spoettl wrote: > Hi List, > > I have a NSOutlineView bound to a NSTreeController that delivers my model > objects. That NSTreeController sorts the model objects through sort > descriptors. What I would like to do is save the current selection and > restore i

Re: Restoring a NSTreeController selection

2010-06-24 Thread Keith Duncan
On 24 Jun 2010, at 09:35, jonat...@mugginsoft.com wrote: > 1. NSTreeController items are subclasses of NSTreeNode (see the 10.5 release > notes). This isn't strictly true, from the docs: "In Leopard, the arrangedObjects method returns a proxy that responds to the NSTreeNode methods" In Leopa

Re: Restoring a NSTreeController selection

2010-06-24 Thread jonat...@mugginsoft.com
On 24 Jun 2010, at 09:56, Keith Duncan wrote: > > On 24 Jun 2010, at 09:35, jonat...@mugginsoft.com wrote: > >> 1. NSTreeController items are subclasses of NSTreeNode (see the 10.5 release >> notes). > > This isn't strictly true, from the docs: > > "In Leopard, the arrangedObjects method re

Re: Exit( ) necessary? (oalTouch sample project)

2010-06-24 Thread Eric Wing
On 5/27/10, Philip Mobley wrote: > I have a question about the oalTouch example project. > > Specifically the sample code uses the exit( ) function after encountering an > error such as in the sample code below. > > I looked up the OpenAL documentation for alGetError( ) and no where does the > Ope

closing a sheet from another controller

2010-06-24 Thread John Love
I use one of the standard approaches to opening a NSWindowController sheet; that is, my external Controller calls: [NSApp beginSheet:...] each of the IB buttons are connected via IBActions that close the sheet via: [NSApp stopModal]; // sender = NSButton and [sender window] =

Re: File descriptors not freed up without a -closeFile call

2010-06-24 Thread Ben Haller
On 23-Jun-10, at 8:40 AM, Dave Keck wrote: Ah, interesting. I missed that in the docs. It still seems bad to me that the file handle will actually dealloc without closing its associated file descriptor, but perhaps you are right that that is the documented behavior. I'll just stop worr

Re: File descriptors not freed up without a -closeFile call

2010-06-24 Thread Ben Haller
On 23-Jun-10, at 9:35 AM, Alastair Houghton wrote: On 23 Jun 2010, at 11:14, Ben Haller wrote: 3. I added [[pipe fileHandleForWriting] closeFile] and [[pipe fileHandleForReading] closeFile] calls to close the files associated with the pipes when my tasks completed. This change fixed the

Re: closing a sheet from another controller

2010-06-24 Thread Graham Cox
On 24/06/2010, at 11:09 PM, John Love wrote: > I use one of the standard approaches to opening a NSWindowController sheet; > that is, my external Controller calls: > > [NSApp beginSheet:...] > > each of the IB buttons are connected via IBActions that close the sheet via: > > [NSAp

Re: Restoring a NSTreeController selection

2010-06-24 Thread Markus Spoettl
On Jun 24, 2010, at 4:35 AM, jonat...@mugginsoft.com wrote: >> I have a NSOutlineView bound to a NSTreeController that delivers my model >> objects. That NSTreeController sorts the model objects through sort >> descriptors. What I would like to do is save the current selection and >> restore it

[MEET] Toronto Cocoaheads / tacow - July 6

2010-06-24 Thread Karl Moskowski
The next meeting of tacow/Toronto CocoaHeads will be held on Tuesday, July 6 at 6:30 PM. Note that the date is tentative - we're looking for a new meeting location. We'll confirm the date and location once we hear from our potential new location. Up-to-date agenda & location are available at h

Re: Isolate NSTextView from NSColorWell

2010-06-24 Thread Ross Carter
This thread should help: http://www.cocoabuilder.com/archive/cocoa/149756-understanding-nstextview-setinsertionpointcolor.html On Jun 23, 2010, at 3:05 AM, Bernard Knaepen wrote: > The NSTextView is indeed richtext and this is what I need. Do I need to > subclass the NSColorWell or the NSTextV

Re: Not sure what's wrong with this code to using NSUserDefaults...

2010-06-24 Thread Matt Neuburg
On Wed, 23 Jun 2010 21:11:40 -0300, Patrick William Walker said: >... beyond me but here it is. > >NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults]; > >[prefs setObject: @"120" forKey: @"Length"]; > >[prefs synchronize]; > > >When the program is run in the iPhone simulator (v3.2, no

Problems displaying Arabic in UITextView

2010-06-24 Thread Hussain Ali
Hi Guys, I'm displaying Arabic text in a UITextView on the iPhone. The problem is that if the text is long, it takes very long to draw that text, sometimes it takes upto 3/4 seconds to draw/render. Any help to resolve this would be great appreciated :) Thanks Hussain

Re: force rendering of views off screen

2010-06-24 Thread Martin Glaß
yes, you're describing what i want. the problem is that a subview (page) of the main scrollview only calls -drawLayer:inContext: if the user flips to a page, thus that particular page moving into the view/becoming visible. additionally, if the user scrolls through the pages very fast, no content is

Re: force rendering of views off screen

2010-06-24 Thread Martin Glaß
sorry, CATiledLayer actually improves performance. the downside is, the tiles need time to be drawn and are faded in using an animation of 0.25 seconds. so, if there are 6 tiles to be drawn you end up seeing iOS building the "mosaic" in a total of 1.5 seconds. i took some looks at the scroll view

Re: NSOpenPanel won't allow selecting aliases

2010-06-24 Thread Corbin Dunn
On Jun 23, 2010, at 4:59 PM, Seth Willits wrote: > Apparently I've never noticed that in my open panels, I can't select aliases. > Say for instance that on my Desktop there is an alias to deeply nested > folder. In the open panel, when it lists the Desktop folder's contents, the > alias is dis

Re: force rendering of views off screen

2010-06-24 Thread David Duncan
On Jun 24, 2010, at 8:59 AM, Martin Glaß wrote: > sorry, CATiledLayer actually improves performance. the downside is, > the tiles need time to be drawn and are faded in using an animation of > 0.25 seconds. > so, if there are 6 tiles to be drawn you end up seeing iOS building > the "mosaic" in a t

Re: CCCrypt()

2010-06-24 Thread Richard Hood
On Jun 24, 2010, at 4:29 AM, Graham Lee wrote: > On 24 Jun 2010, at 07:43, Richard Hood wrote: > >> does anyone know in which library the CCCrypt() routine is defined? I've >> linked against libcrypto.dylib where it's defined in the header and >> libSystem.dylib where the man page says it is b

[iPhone] UIMenuController not showing up

2010-06-24 Thread PCWiz
I have a button that is linked to an action in my view controller. This action is supposed to pop up a UIMenuController. Here's the code: UIMenuController *menuController = [UIMenuController sharedMenuController]; UIMenuItem *listMenuItem = [[UIMenuItem alloc] initWithTitle:@"List" action:@sel

Re: [iPhone] UIMenuController not showing up

2010-06-24 Thread Alex Kac
your window has to become first responder. It has to respond to the canPerformAction:withSender: events. On Jun 24, 2010, at 2:54 PM, PCWiz wrote: > I have a button that is linked to an action in my view controller. > This action is supposed to pop up a UIMenuController. Here's the code: > > U

Best way to determine if a directory is a package

2010-06-24 Thread Ron Aldrich
Hello All, I've been asked to add the ability to drop a folder onto my application, and scan the folder for acceptable documents. I'd like to filter the scan such that any file which is contained within a package, or within a hidden folder is skipped. I'll be using NSDirectoryEnumerator to enu

Re: Best way to determine if a directory is a package

2010-06-24 Thread Kyle Sluder
On Thu, Jun 24, 2010 at 2:24 PM, Ron Aldrich wrote: > So, first - Given a file path (or URL, if needed), how do I reliably > determine if the path points to a package? -[NSWorkspace isFilePackageAtPath:] --Kyle Sluder ___ Cocoa-dev mailing list (Coco

Re: Not sure what's wrong with this code to using NSUserDefaults...

2010-06-24 Thread Jens Alfke
On Jun 23, 2010, at 5:11 PM, Patrick William Walker wrote: > NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults]; > > [prefs setObject: @"120" forKey: @"Length"]; > > [prefs synchronize]; > > > When the program is run in the iPhone simulator (v3.2, not using 4.0 yet), it

Re: Not sure what's wrong with this code to using NSUserDefaults...

2010-06-24 Thread Greg Parker
On Jun 24, 2010, at 2:40 PM, Jens Alfke wrote: > On Jun 23, 2010, at 5:11 PM, Patrick William Walker wrote: >> NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults]; >> >> [prefs setObject: @"120" forKey: @"Length"]; >> >> [prefs synchronize]; >> >> >> When the program is run

Re: Compile Error: undeclared (first use in this function) --> While Init'ing an Object

2010-06-24 Thread Chris Tracewell
On Jun 22, 2010, at 2:11 PM, Kyle Sluder wrote: > On Tue, Jun 22, 2010 at 2:03 PM, Chris Tracewell wrote: >> I have my own custom framework. The framework builds fine but when I link to >> it in one of my projects one class is causing a compile error of... >> >> 'MyClass' undeclared (first use

Re: Best way to determine if a directory is a package

2010-06-24 Thread Jean-Daniel Dupas
Le 24 juin 2010 à 23:24, Ron Aldrich a écrit : > Hello All, > > I've been asked to add the ability to drop a folder onto my application, and > scan the folder for acceptable documents. > > I'd like to filter the scan such that any file which is contained within a > package, or within a hidden

NSPanel and NSWindowController

2010-06-24 Thread Daniel Káčer
Hi all, i have created NSPanel in NIB file, for controlling this NSPanel i have also controller and i need in this controller handling close event this NSPanel. Which method is for this thing usable ? This window (NSPanel) contain configuration preferences in my application and on close this

Re: NSPanel and NSWindowController

2010-06-24 Thread Nick Zitzmann
On Jun 24, 2010, at 4:31 PM, Daniel Káčer wrote: > i have created NSPanel in NIB file, for controlling this NSPanel i have also > controller and i need in this controller handling close event this NSPanel. > Which method is for this thing usable Make your controller the window's delegate if yo

accessing core data sqlite from utility

2010-06-24 Thread Chris Idou
I've got a core data database in sqlite format, and I thought I'd download a utility to look inside it. But I've downloaded about 4 utilities that purport to be able to open sqlite databases and none of them can open it, they give errors along the lines of it being encrypted and needing a pass

Re: accessing core data sqlite from utility

2010-06-24 Thread Jens Alfke
On Jun 24, 2010, at 5:02 PM, Chris Idou wrote: > I've got a core data database in sqlite format, and I thought I'd download a > utility to look inside it. But I've downloaded about 4 utilities that purport > to be able to open sqlite databases and none of them can open it, they give > errors a

Re: accessing core data sqlite from utility

2010-06-24 Thread Chris Idou
OK, my stupidity, I was looking at a NSBinaryStoreType and not sqlite. Next question: is there any utility for looking inside a NSBinaryStoreType? - Original Message From: Jens Alfke To: Chris Idou Cc: cocoa-dev@lists.apple.com Sent: Fri, 25 June, 2010 10:35:10 AM Subject: Re: accessi

Re: How to debug: "Save partially failed: Error saving the persistent store."

2010-06-24 Thread Fritz Anderson
On 23 Jun 2010, at 8:03 PM, Gideon King wrote: > I am encountering this issue when trying to save my atomic store. The > backtraces don't seem to give anything useful to locate the issue. > > Any suggestions as to how to find the cause of this? I wish you had mentioned the circumstances in whi

Re: Compile Error: undeclared (first use in this function) --> While Init'ing an Object

2010-06-24 Thread Graham Cox
On 25/06/2010, at 7:52 AM, Chris Tracewell wrote: > Obviously, I have a setting wrong somewhere as it is seeing an older version > of the framework than I am linking to. Any thoughts where I should look? If the problem is that it can't see a certain class in the framework, have you made sure

iOS4: UI Update on Background

2010-06-24 Thread Angelica Grace Tanchico
Hello, Based on iPhone Application Programming Guide document: "Avoid updating your windows and views. While in the background, your application’s windows and views are not visible, so you should not try to update them. Although creating and manipulating window and view objects in the backg

iOS4: Sockets for VOIP

2010-06-24 Thread Angelica Grace Tanchico
Hello, According to iPhone Application Programming Guide document, In order for your application to maintain a persistent connection while it is in the background, you must configure the sockets used to communicate with your VoIP service. In iPhone OS, most sockets are managed using higher-le

RE: iOS4: UDP sockets in the background

2010-06-24 Thread Angelica Grace Tanchico
Hi Robert, Thanks for emphasizing this, but I am really confused. I have a VOIP app. How can I still have network connection in the background when my app uses network-socket connection? Also according to document: In order for your application to maintain a persistent connection while it is i