Re: iOS4: UI Update on Background

2010-06-25 Thread Scott Anguish
On Jun 25, 2010, at 12:07 AM, Angelica Grace Tanchico wrote: > > 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 > upda

Re: Restoring a NSTreeController selection

2010-06-25 Thread Scott Anguish
> > I was deterred to do this after reading this in the documentation for > -arrangedObjects > > - > Special Considerations > Prior to Mac OS X v10.5 this method returned an opaque root node representing > all the currently displayed objects. This method should be used for binding, > no as

core data "could not merge changes"

2010-06-25 Thread Chris Idou
I've done a lot of core data development, but all using the XML file format. Now I'm trying to work with sqlite. I've got an app that was working, but when I change to sqllite I get errors. I've got a really basic application, nothing particularly special about it as far as I see, and when I c

Re: Restoring a NSTreeController selection

2010-06-25 Thread jonat...@mugginsoft.com
On 25 Jun 2010, at 08:12, Scott Anguish wrote: >> >> I was deterred to do this after reading this in the documentation for >> -arrangedObjects >> >> - >> Special Considerations >> Prior to Mac OS X v10.5 this method returned an opaque root node >> representing all the currently displayed o

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

2010-06-25 Thread ronald b. kopelman
On Jun 24, 2010 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? And second, how do I reliably > determine if the path points to a hidden item? Hidden item names begin with a "." In your enumeration, c

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

2010-06-25 Thread Paul Sanders
> Hidden item names begin with a "." There is also a UF_HIDDEN flag in stat.st_flags. Google man stat os x for details (you want stat(2)). The Finder respects this flag on my 10.6.3 system. Whether it corresponds to kLSItemInfoIsVisible in LSItemInfoRecord.LSItemInfoFlags (as recommended by

Re: Restoring a NSTreeController selection

2010-06-25 Thread Markus Spoettl
On Jun 25, 2010, at 3:12 AM, Scott Anguish wrote: >> I was deterred to do this after reading this in the documentation for >> -arrangedObjects >> >> - >> Special Considerations >> Prior to Mac OS X v10.5 this method returned an opaque root node >> representing all the currently displayed obj

Re: Restoring a NSTreeController selection

2010-06-25 Thread Scott Anguish
> > I didn't realize that the "No assumption should be made" part was also > referring to "Prior Mac OS X 10.5", that was my trouble. So I think the new > working wouldn't have saved me either. Actually, it only refers to before 10.5 when what was returned was an opaque object. > > If the h

Re: iOS4: UDP sockets in the background

2010-06-25 Thread Robert Vojta
On 23.6.2010, at 20:15, Gerd Knops wrote: > I have been doing that without a problem since early iOS 3, so no reason to > expect it would stop working in iOS4. FYI, doc quote ... Cancel any Bonjour-related services before being suspended. When your application moves to the background, and be

Re: can we have own application logo for ad-hoc release.

2010-06-25 Thread Robert Vojta
On 22.6.2010, at 8:05, Kalyanraju M wrote: > Hi,when loading the Ad-Hoc release into iTunes, there is a generic icon shown > in the Apps section. Additionally, the label shows "Unknown genre". Can i > have my own image and my own label at label "Unknown genre". Look at http://github.com/tapm

Read "File Sharing" status

2010-06-25 Thread johnlobo99
�Hi All, How to check if "File Sharing" is checked in system preference. When iterated using ps command samba daemon will be running even if only "Printer Sharing" is checked. So I would like to know If there is any cocoa API/ system configuration API (SC framework) that checks if file sharing

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

2010-06-25 Thread Adam Younce
Have you called [[NSUserDefaults standardUserDefaults] registerDefaults:dictionaryObject] prior to any calls to setObject (and friends)? -- Adam Younce ayou...@ripcord.net On Jun 24, 2010, at 10:10 PM, cocoa-dev-requ...@lists.apple.com wrote: > On Jun 23, 2010, at 5:11 PM, Patrick William Wal

Re: -enclosingScrollView returns nil when receiver is a descendant of the clip view

2010-06-25 Thread Kyle Sluder
On Wed, Jun 23, 2010 at 12:26 PM, jonat...@mugginsoft.com wrote: > > On 23 Jun 2010, at 19:50, Kyle Sluder wrote: >> >> To describe it a bit more visually, here's a diagram of our view hierarchy: >> >> Scroll View >> |- Clip View >>  |- Accessory view >>  |- Document view >> >> Calling -enclosingS

Re: iOS4: UDP sockets in the background

2010-06-25 Thread Kyle Sluder
On Thu, Jun 24, 2010 at 10:10 PM, Angelica Grace Tanchico wrote: > Also according to 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 socket

Re: Read "File Sharing" status

2010-06-25 Thread Kyle Sluder
On Fri, Jun 25, 2010 at 6:28 AM, wrote: > How to check if "File Sharing" is checked in system preference. When iterated > using ps command > samba daemon will be running even if only "Printer Sharing" is checked. So I > would like to know > If there is any cocoa API/ system configuration API (S

Smooth OpenGL animation possible, even if main thread blocks?

2010-06-25 Thread Markus Hanauska
Let me shortly describe the current situation: We have a window and inside this window is a layer-hosting NSView. This view is supposed to permanently display a never ending OpenGL animation. Why did we use CALayers for that? For no specific reason, it just sounded like starting with 10.5 CALay

Re: Smooth OpenGL animation possible, even if main thread blocks?

2010-06-25 Thread vincent habchi
> So what are we supposed to do? Is there something I'm overlooking here or > should we maybe stop using CALayers and instead use NSOpenGLView or maybe > even manage our own OpenGL Context, render into a background buffer (e.g. > some kind of image) and then directly paint this image from within

Custom Toolbar

2010-06-25 Thread Richard Somers
I have a need to make a custom toolbar. Cocoa's standard toolbar will not work for this application (no lectures please). It would great if it had similar capabilities to the standard toolbar. The user could rearrange tools on the toolbar and drag other tools from the master palette into th

NSMenuDelegate menuDidClose called before NSMenuItem's action?

2010-06-25 Thread augusto callejas
hi- i'm constructing an NSMenu with a delegate to handle menuDidClose. that menu has an NSMenuItem that had an action to handle when its selected. when i select the menu item from the menu, it calls menuDidClose, and then the action of the NSMenuItem. i would expect the other order, but the docu

Re: NSMenuDelegate menuDidClose called before NSMenuItem's action?

2010-06-25 Thread Peter Ammon
On Jun 25, 2010, at 2:58 PM, augusto callejas wrote: > hi- > > i'm constructing an NSMenu with a delegate to handle menuDidClose. > that menu has an NSMenuItem that had an action to handle when its selected. > when i select the menu item from the menu, it calls menuDidClose, and then > the actio

Re: NSMenuDelegate menuDidClose called before NSMenuItem's action?

2010-06-25 Thread augusto callejas
peter- actually i wanted to be notified before the menu is closed, because i'm freeing some resources when the menu is closed, but i'm depending on those resources to be around when it comes time to execute the menu item's action. perhaps i can't free those resources and need to take care of that

Re: NSMenuDelegate menuDidClose called before NSMenuItem's action?

2010-06-25 Thread Peter Ammon
Unfortunately this isn't as easy as it should be. Since the menu action can do anything, including trigger menu tracking again, it really does need to happen last. I think your best option is to use performSelector:afterDelay: from within menuDidClose:. Another possibility is to tie the lifet

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

2010-06-25 Thread Ken Thomases
On Jun 25, 2010, at 6:16 AM, Paul Sanders wrote: >> Hidden item names begin with a "." > > There is also a UF_HIDDEN flag in stat.st_flags. Google man stat os x for > details (you want stat(2)). The Finder respects this flag on my 10.6.3 > system. Whether it corresponds to kLSItemInfoIsVisib

Re: NSMenuDelegate menuDidClose called before NSMenuItem's action?

2010-06-25 Thread Tony Romano
What I do is create an object that represents the data you need for your action. During menuNeedsUpdate, instantiate an instance of the object that will be used later and then call [menuItemName setRepresentedObject:objectYouCreated] where menuItemName is the menuItem object you need to associ

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

2010-06-25 Thread Chris Tracewell
On Jun 24, 2010, at 6:59 PM, Graham Cox wrote: > > 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 c

Re: Restoring a NSTreeController selection

2010-06-25 Thread Scott Anguish
Done, but don’t please count on this getting bugs fixed. I happened to have the file out. The right way... File bugs. You get tracking, we get tracking, management knows which docs need attention. What we’ve done gets tracked, etc... On Jun 25, 2010, at 4:39 AM, jonat...@mugginsoft.com wrote:

Re: Custom Toolbar

2010-06-25 Thread Scott Anguish
On Jun 25, 2010, at 4:01 PM, Richard Somers wrote: > I have a need to make a custom toolbar. Cocoa's standard toolbar will not > work for this application (no lectures please). I don’t think you’d get any lectures, rather questions about why it doesn’t offer what you need. > It would great if

Re: Custom Toolbar

2010-06-25 Thread Richard Somers
On Jun 25, 2010, at 10:04 PM, Scott Anguish wrote: Which brings me back to my first question.. :-) There are simply too many tools for a standard toolbar. I am trying to make a nice user friendly application but fundamentally there is no getting around the fact that this kind of applicatio

Re: Custom Toolbar

2010-06-25 Thread Jens Alfke
On Jun 25, 2010, at 9:35 PM, Richard Somers wrote: > There are simply too many tools for a standard toolbar. I am trying to make a > nice user friendly application but fundamentally there is no getting around > the fact that this kind of application has lots of tools. But will any one person a

Re: Custom Toolbar

2010-06-25 Thread Scott Anguish
On Jun 26, 2010, at 12:35 AM, Richard Somers wrote: > On Jun 25, 2010, at 10:04 PM, Scott Anguish wrote: > >> Which brings me back to my first question.. :-) > > There are simply too many tools for a standard toolbar. I am trying to make a > nice user friendly application but fundamentally the

Re: Custom Toolbar

2010-06-25 Thread Kyle Sluder
On Jun 25, 2010, at 9:35 PM, Richard Somers wrote: > On Jun 25, 2010, at 10:04 PM, Scott Anguish wrote: > >> Which brings me back to my first question.. :-) > > There are simply too many tools for a standard toolbar. I am trying to make a > nice user friendly application but fundamentally ther