Re: sending continues NSImage data to iPhone

2009-05-29 Thread Andrew Farmer
On 28 May 2009, at 06:31, sheen mac wrote: I am doing a screen sharing app for iPhone and Mac.I captured the Mac Screen as NSImage using OpenGL and send it to iPod as Gif data. But sending and restoring to UIImage process make delay because of Image size.The image size of capture is 320 x 38

Custom view attached to a menu bar NSStatusItem application

2009-05-29 Thread John Ku
How do I proceed in creating a custom view/window that is attached and act like an NSMenu for a NSStatusItem.So when the menu bar icon is clicked, this custom view/window will appear right underneath the NSStatusItem. So far im thinking to start with a custom NSWindow and an NSView inside that. Th

Re: Custom view attached to a menu bar NSStatusItem application

2009-05-29 Thread Seth Willits
On May 29, 2009, at 12:46 AM, John Ku wrote: Any alternatives? What direction should I look into? Much Appreciated! How about creating a menu item and using setView: ? -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: Custom view attached to a menu bar NSStatusItem application

2009-05-29 Thread John Ku
Ah, but that just sets a customView for that particular menu item correct?Im trying to built a full pop up menu from scratch. Im looking to change the menu borders, background, add buttons, drop down lists, etc. Its actually less of a menu in terms of function, more of a pop up window that acts lik

Rearrange items on NSToolbar

2009-05-29 Thread Nikhil Khandelwal
Hi, Is it possible to rearrange items in customize toolbar ? I want to change the order of NSToolbarItem in NSToolbar. Thanks, Nikhil DISCLAIMER == This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for th

Re: Custom view attached to a menu bar NSStatusItem application

2009-05-29 Thread Cocoa Dev
I think what you want is something like MAAttachedWindow which can be found at http://mattgemmell.com/source. HTH, Tim 29 maj 2009 kl. 10.37 skrev John Ku: Ah, but that just sets a customView for that particular menu item correct?Im trying to built a full pop up menu from scratch. Im look

Re: Performance, Efficiency - Coding practice

2009-05-29 Thread Alexander Spohr
Am 29.05.2009 um 02:55 schrieb John Ku: And yeah, NSMutableString will be initialized else where and released later. Why use a mutable string at all? Just retain the new string and dump the old one. Use @property (retain) NSString *title; @synthesize title; and be done with it.

Re: Performance, Efficiency - Coding practice

2009-05-29 Thread Jean-Daniel Dupas
Le 29 mai 09 à 11:31, Alexander Spohr a écrit : Am 29.05.2009 um 02:55 schrieb John Ku: And yeah, NSMutableString will be initialized else where and released later. Why use a mutable string at all? Just retain the new string and dump the old one. Use @property (retain) NSString *title

[Core Data] mergeChangesFromContextDidSaveNotification: and thread safety

2009-05-29 Thread Aurélien Hugelé
Hi ! I'm having strange crashes in my threaded core data application. Happy WWDC is in few days! Core Data multithreading basic rule is to avoid passing managed objects across threads, and pass objectIDs instead. To "synchronize" 2 mocs from 2 different threads (sharing the same psc), I

Re: Binding to two values

2009-05-29 Thread Clint Shryock
I think the best way I can think of would be to have an object act as an intermediate for this, which contains an aggregate array that table3controller is bound to. In this object define observers for tableview1controller and tableview2controller's selection property, so that this object receives K

Re: Recommendations to Reading the Xcode in built Documentation to the fullest effect

2009-05-29 Thread colo
Oooo! AppKiDo will do. Who cares about polish. As long as it finds data fast is the goal. Thank you all. This has helped a ton. On Thu, May 28, 2009 at 11:24 PM, Kevin LaCoste wrote: > The fact that AppKiDo isn't built in is one of the reasons I like it. When > you update your docs in Xcode's bu

How to set horizontal scroller for NSTextView?

2009-05-29 Thread archana udupa
Hi list... I m new to cocoa. I ve a NSTextview, for which i ve set a scrollerview. I can scroll it vertically.But i wanted to scroll it horizontally also. I ve used [NSTextView setHasHorizontalScroller:YES]; But i m wondering why its not workingPlease help me..:( -- With Regards,

Apple Remote remove left and right hold events

2009-05-29 Thread Mr. Gecko
Hello, I'm trying to find out how to tell the apple remote to not do hold events for the left and right buttons. Is this Possible? If so how do I do it? Thanks, Mr. Gecko ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post ad

Message from view to viewController

2009-05-29 Thread Pierre Berloquin
Hi I have a MyAppViewController that creates a set of views and that works fine. They are displayed and animated. I want to know in the view controller when one of the views is touched and work on it. For that I have in the uiview class : - (void) touchesBegan: (NSSet *)touches withEvent:(UIEvent

Re: Message from view to viewController

2009-05-29 Thread Nick Zitzmann
On May 29, 2009, at 9:39 AM, Pierre Berloquin wrote: But I get an error : duplicate symbol .objc_class_name_MyAppViewController What am I doing wrong ? You're building the class "MyAppViewController" twice for some reason. Did you accidentally #import a .m file anywhere, or leave an imp

Re: Message from view to viewController

2009-05-29 Thread Pierre Berloquin
Yes, I did import too many times, but that was in a desperate attempt to import enough!I corrected that and now I have my original error : MyAppViewController may not respond to +manageMyViews which blocks the program Thanks 2009/5/29 Nick Zitzmann > > On May 29, 2009, at 9:39 AM, Pierre Berloq

how to set horizontal scroller for NSTextView?

2009-05-29 Thread archana udupa
Hi list... I m new to cocoa. I ve a NSTextview, for which i ve set a scrollerview. I can scroll it vertically.But i wanted to scroll it horizontally also. I ve used [NSScrollView setHasHorizontalScroller:YES]; But i m wondering why its not workingPlease help me..:( -- -- With Regards,

Re: Message from view to viewController

2009-05-29 Thread Scott Ribe
> Yes, I did import too many times, but that was in a desperate attempt to > import enough!I corrected that and now I have my original error : > MyAppViewController may not respond to +manageMyViews > which blocks the program So you're not importing MyAppViewController.h? You need to learn the dif

Re: Message from view to viewController

2009-05-29 Thread Jason Foreman
On Fri, May 29, 2009 at 11:18 AM, Pierre Berloquin wrote: > Yes, I did import too many times, but that was in a desperate attempt to > import enough!I corrected that and now I have my original error : > MyAppViewController may not respond to +manageMyViews > which blocks the program > You've defi

Re: Message from view to viewController

2009-05-29 Thread Pierre Berloquin
No I'm not that innocent. I do import the .h . My program is already complex, with several classes working together ok. Only this message problem blocks me. 2009/5/29 Scott Ribe > > Yes, I did import too many times, but that was in a desperate attempt to > > import enough!I corrected that and no

Re: how to set horizontal scroller for NSTextView?

2009-05-29 Thread Jason Foreman
On Fri, May 29, 2009 at 11:20 AM, archana udupa wrote: > Hi list... >  I m new to cocoa. I ve a NSTextview, for which i ve set a > scrollerview. I can scroll it vertically.But i wanted to scroll it > horizontally also. I  ve used [NSScrollView > setHasHorizontalScroller:YES]; But i m wondering why

Table column resizing overlaps the text with other column contents

2009-05-29 Thread Arun
Hi All, I have a application in which i display application names along with an image in a table column. Also i display their versions in another column. I have used custom ImageAndText cell for the first column and NSTextFieldCell fro the second column. If i resize the second column, then the con

Re: Table column resizing overlaps the text with other column contents

2009-05-29 Thread Corbin Dunn
On May 29, 2009, at 10:00 AM, Arun wrote: Hi All, I have a application in which i display application names along with an image in a table column. Also i display their versions in another column. I have used custom ImageAndText cell for the first column and NSTextFieldCell fro the second

Re: Message from view to viewController

2009-05-29 Thread Scott Ribe
> No I'm not that innocent. I do import the .h . My program is already complex, > with several classes working together ok. Only this message problem blocks me. Well then, my second guess would be one of those frustrating typos that you don't see even though you've looked at the identifiers severa

Re: Rearrange items on NSToolbar

2009-05-29 Thread Peter Ammon
On May 29, 2009, at 1:41 AM, Nikhil Khandelwal wrote: Hi, Is it possible to rearrange items in customize toolbar ? I want to change the order of NSToolbarItem in NSToolbar. Thanks, Nikhil Hello Nikhil, The order of the items in the toolbar is determined by the order of the item identifie

Help needed with setting autoresizing masks

2009-05-29 Thread WT
Hello list, I've been scratching my head for a few hours already trying to get the autoresizing masks set correctly for the following situation, with no luck, and would greatly appreciate some help. I have a view containing two labels, labelA and labelB, horizontally laid out in sequence,

NSURLRequest- setHTTPMethod to REPORT

2009-05-29 Thread Chris Purcell
Hello, I'm trying to issue a "REPORT" request to a server, the HTTP Method header needs to look like this: REPORT /bernard/work/ HTTP/1.1 So I use setHTTPMethod to set the HTTP Method: [theRequest setHTTPMethod:@"REPORT /bernard/work/"]; But when I issue the request, the server returns a

Re: NSURLRequest- setHTTPMethod to REPORT

2009-05-29 Thread Jason Foreman
On Fri, May 29, 2009 at 4:10 PM, Chris Purcell wrote: > Hello, > > I'm trying to issue a "REPORT" request to a server, the HTTP Method header > needs to look like this: > > REPORT /bernard/work/ HTTP/1.1 > > So I use setHTTPMethod to set the HTTP Method: [theRequest > setHTTPMethod:@"REPORT /berna

Re: [Core Data] mergeChangesFromContextDidSaveNotification: and thread safety

2009-05-29 Thread Ben Trumbull
On May 29, 2009, at 2:49 AM, Aurélien Hugelé wrote: Core Data multithreading basic rule is to avoid passing managed objects across threads, and pass objectIDs instead. yup. To "synchronize" 2 mocs from 2 different threads (sharing the same psc), I use mergeChangesFromContextDidSaveNotific

Re: Help needed with setting autoresizing masks

2009-05-29 Thread Seth Willits
On May 29, 2009, at 1:38 PM, WT wrote: I also tried turning off the "autoresize subviews" option in IB for the container view (and all 4 elements, not that that should matter), in the hopes that that would work since I compute the correct coordinates for all elements myself. Yet, it still d

Re: [Core Data] mergeChangesFromContextDidSaveNotification: and thread safety

2009-05-29 Thread Kyle Sluder
On Fri, May 29, 2009 at 2:25 PM, Ben Trumbull wrote: > In a literal sense, it can appear that way.  The specific implementation > details of mergeChangesFromContextDidSaveNotification address the paradox. >  The framework gets to bend its own rules a touch in much the same way that > an object acc

Re: [Core Data] mergeChangesFromContextDidSaveNotification: and thread safety

2009-05-29 Thread mmalc Crawford
On May 29, 2009, at 2:46 PM, Kyle Sluder wrote: Can we please have some further clarification on this in the docs please? r.6933634 The documentation states explicitly: You can use this method to, for example, update a managed object context on the main thread with work completed in anoth

Re: [Core Data] mergeChangesFromContextDidSaveNotification: and thread safety

2009-05-29 Thread Kyle Sluder
On Fri, May 29, 2009 at 2:59 PM, mmalc Crawford wrote: > Could you elaborate on what is unclear? Perhaps it would suffice to just have a simple one-liner that mentions NSManagedObjectContextDidSave, specifically in the context of multi-threaded Core Data. It's not an easy topic, so I think an ai

Getting localized /Users/Shared Dir Name

2009-05-29 Thread Erg Consultant
I don't see any methods such as NSSearchPathForDirectoriesInDomains() for getting the localized name of the /Users/Shared directory. Is there one? Thanks, Erg ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: [Core Data] mergeChangesFromContextDidSaveNotification: and thread safety

2009-05-29 Thread mmalc Crawford
On May 29, 2009, at 3:40 PM, Kyle Sluder wrote: And if it's determined to already be clear enough, please close the bug No, there is something there to be addressed -- thanks for the clarification. mmalc ___ Cocoa-dev mailing list (Cocoa-d

Re: Getting localized /Users/Shared Dir Name

2009-05-29 Thread Chris Parker
On 29 May 2009, at 3:49 PM, Erg Consultant wrote: I don't see any methods such as NSSearchPathForDirectoriesInDomains() for getting the localized name of the /Users/Shared directory. Is there one? Once you have any path, you can get the localized components via - [NSFileManager components

Re: Getting localized /Users/Shared Dir Name

2009-05-29 Thread Erg Consultant
How does that help? I can get a list of all user dirs via: NSSearchPathForDirectoriesInDomains( NSUserDirectory, NSLocalDomainMask, YES ); But I still don't know which of those returned is the Shared one. Erg From: Chris Parker To: Erg Consultant Cc: Chris

Re: Help needed with setting autoresizing masks

2009-05-29 Thread WT
Hi Seth, thanks for answering to my call for help. You make a good point. Perhaps it is a problem with my code after all. However, not updating the label positions still causes them to move and if I am not moving them, someone else is. Anyhow, I created a sample project that still shows t

Re: Getting localized /Users/Shared Dir Name

2009-05-29 Thread Michael Ash
On Fri, May 29, 2009 at 7:01 PM, Erg Consultant wrote: > How does that help? > > I can get a list of all user dirs via: > > NSSearchPathForDirectoriesInDomains( NSUserDirectory, NSLocalDomainMask, YES > ); > > But I still don't know which of those returned is the Shared one. This is not even rem

Get Users/Shared full path and its localized dir name

2009-05-29 Thread Erg Consultant
How can I get the full path to the Users/Shared dir and the dir's localized name? Thanks, Erg ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: Get Users/Shared full path and its localized dir name

2009-05-29 Thread Steve Christensen
On May 29, 2009, at 4:27 PM, Erg Consultant wrote: How can I get the full path to the Users/Shared dir and the dir's localized name? FSRef usersSharedFSRef; if (FSFindFolder(kOnAppropriateDisk, kSharedUserDataFolderType, kDontCreateFolder, &usersSharedFSRef) == noErr) { NSString* user

Re: Drag and drop query

2009-05-29 Thread Nate Weaver
It seems to me that you want to also use NSTIFFPboardType/ NSPDFPboardType with the image data. Mail/iPhoto like to deal with files (for attachments/library items), but TextEdit wants a raw image (IIRC). -W On May 30, 2009, at 4:21 AM, Srinivasa Prabhu wrote: Hi all, I am trying to drag

Showing more warnings possible in Xcode?

2009-05-29 Thread Eric Hermanson
I am periodically bitten by EXC_BAD_ACCESS memory problems that are sometimes hard to find. One that just occurred was that I was mistakenly returning an un-initialized local variable from a method (i.e. NSObject myObject; ... ... some if-statements ... return myObject; // I should hav

Re: Showing more warnings possible in Xcode?

2009-05-29 Thread Graham Cox
On 30/05/2009, at 1:13 PM, Eric Hermanson wrote: Is there a way to tune xCode so that it warns you of these types of potential problems (and more)? The Java development environment I've been using for the past several years (Jetbrains IDEA) has unbelievably fantastic code-editing and comp

Re: Showing more warnings possible in Xcode?

2009-05-29 Thread Eric Hermanson
Thank You. I also just found this useful web page based on your feedback: http://developer.apple.com/TOOLS/xcode/staticanalysis.html On May 29, 2009, at 11:22 PM, Graham Cox wrote: On 30/05/2009, at 1:13 PM, Eric Hermanson wrote: Is there a way to tune xCode so that it warns you of thes

Re: Showing more warnings possible in Xcode?

2009-05-29 Thread Gwynne Raskind
On May 29, 2009, at 11:22 PM, Graham Cox wrote: Is there a way to tune xCode so that it warns you of these types of potential problems (and more)? The Java development environment I've been using for the past several years (Jetbrains IDEA) has unbelievably fantastic code-editing and compile

Custom view resizing

2009-05-29 Thread Robert Olivier
I'm a new Cocoa programmer working on my first non-trivial custom view and I have a question regarding the right way to handle view resizing. Say that I have a list of shapes that I need to draw left to right across my view, and this list grows over time. Eventually, I will need to draw

[ NS KeyedArchiver ] archiveRootObject:toFile: hoses my directory's permissions

2009-05-29 Thread Erg Consultant
I have an app I install with PackageMaker setting the permissions on the staging dirs to root/admin as mentioned in the Apple docs so that the app gets installed with permissions for any user. I also install an empty dir with full rwxrwxrwx permissions - this is a data dir that my app will use

Re: Custom view resizing

2009-05-29 Thread Graham Cox
On 29/05/2009, at 10:14 AM, Robert Olivier wrote: I'm a new Cocoa programmer working on my first non-trivial custom view and I have a question regarding the right way to handle view resizing. Say that I have a list of shapes that I need to draw left to right across my view, and this list