Re: Resizing Detail View of UISplitViewController
Thanks for help! I came to the same conclusion after making a set of experiments. 09.01.2014 18:59, Fritz Anderson wrote: On 9 Jan 2014, at 8:49 AM, Viacheslav Karamov ubuntul...@yandex.ru wrote: I'm using a UISplitViewController in my iPad app and I don't really like the way the popover view slides in and covers a third of the screen and stays there when in Portrait mode. I want it to look like it does when in Landscape mode. How can I resize the overall detail view including navigation bar? In other words, you’d like the sidebar to be present at all times, and for the remainder of the screen to be narrow, instead of being covered. Right? You can’t do that with UISplitViewController. Since you don’t need to track the visibility of the sidebar, it’s trivial to build your own. Look up container view / child view controller. There may be hacks to force UISplitViewController to do what you want, but they’d be harder to do than building your own solution, probably fragile, and probably unacceptable to the App Store reviewers. — F ___ 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 Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Resizing Detail View of UISplitViewController
Thanks! Good point, but I forgot to say I need the possibility to hide/show sidebar by tapping nav bar item. This might be ok for some cases, but I need detail view to be shrunk. 09.01.2014 19:34, Kyle Sluder wrote: On Jan 9, 2014, at 8:59 AM, Fritz Anderson fri...@manoverboard.org wrote: In other words, you’d like the sidebar to be present at all times, and for the remainder of the screen to be narrow, instead of being covered. Right? You can’t do that with UISplitViewController. Really? I'm pretty sure implementing -splitView:shouldHideViewController:inOrientation: to return NO will make the sidebar visible in portrait. Quoth the docs: “Prior to iOS 5.0, the first view controller was always hidden in portrait orientations and always shown in landscape orientations. If you do not implement this method in your delegate object, that default behavior remains in effect.” --Kyle Sluder ___ 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 Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Scrollable GridView with fixed row and column
I need to implement Grid view for iOS 7 and newer. The users should have ability to scroll its contents both horizontally and vertically. They also should have ability to mark the very first row and column as fixed i.e. non-scrollable. How to do this in a right way? Thanks, Vacheslav. ___ 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 Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Scrollable GridView with fixed row and column
Thank you Kyle. But could you be more specific? 15.10.2013 21:18, Kyle Sluder wrote: On Oct 15, 2013, at 11:05 AM, Vyacheslav Karamov ubuntul...@yandex.ru wrote: I need to implement Grid view for iOS 7 and newer. The users should have ability to scroll its contents both horizontally and vertically. They also should have ability to mark the very first row and column as fixed i.e. non-scrollable. How to do this in a right way? Subclass UIScrollView. Make your cells subviews of the scroll view. In -setContentOffset:, position the cells in your frozen row/column such that they are always visible, while the rest of the content scrolls beneath them. Hope that's a helpful start. If you want much more detail, you're going to have to pay someone. --Kyle Sluder ___ 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 Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Scrollable GridView with fixed row and column
Thanks Quincey! How to implement scrolling? 15.10.2013 21:43, Quincey Morris wrote: On Oct 15, 2013, at 11:05 , Vyacheslav Karamov ubuntul...@yandex.ru mailto:ubuntul...@yandex.ru wrote: How to do this in a right way? I think UICollectionView may be what you want: https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/UIKitUICatalog/UICollectionView.html You can implement the special behavior of the first row and column as decoration/supplementary views, or by customizing the layout process, depending on how it's supposed to look. ___ 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 Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
NSTextView with irregular shape
Hello All! I need to implement NSTextView descendant similar to one used in Mac iMessages App. I have implemented live resizing, but how to set resizable image as its custom shape? Thanks. ___ 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 Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSTextView with irregular shape
No, I have already implemented bubbles. It is just NSTableView descendant. 14.02.2013 19:13, Kyle Sluder пишет: On Feb 14, 2013, at 3:11 AM, Vyacheslav Karamov ubuntul...@yandex.ru wrote: Hello All! I need to implement NSTextView descendant similar to one used in Mac iMessages App. I have implemented live resizing, but how to set resizable image as its custom shape? Messages doesn't use custom-shaped text views. If you're referring to the bubbles around sent messages, that's purely visual, and it's actually a web view. This email sent to k...@ksluder.com ___ 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 Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSTextView with irregular shape
I know how to implement custom text layout. Good example of this I have found in Cocoa Programming Developer's Handbook by David Chisnall. This book gives an example how to implement custo text layout, but I don't understand how to implement custom shape of NSTextView. Because my widget grow in height while user is typing, custom image should also grow and vertical scrollbar appears if needed. Anyway, thank you for the quick response! Good luck, Vyacheslav. 14.02.2013 18:56, Keary Suska пишет: On Feb 14, 2013, at 4:11 AM, Vyacheslav Karamov wrote: I need to implement NSTextView descendant similar to one used in Mac iMessages App. I have implemented live resizing, but how to set resizable image as its custom shape? AFAIK, custom text box geometry is really a function of NSTextContainer. I am pretty sure there are examples of this somewhere, but I don't expect it to be trivial. I have been neck-deep in the Cocoa text system and the documentation is somewhat less than desirable and requires having as full an understanding as possible of multiple documents that are not well cross-referenced. A good place to start is here: http://developer.apple.com/library/Mac/#documentation/Cocoa/Conceptual/TextStorageLayer/Concepts/LayoutGeometry.html Chances are, the work will be similar for most simple shapes, so googling for drawing text in a circle, for instance, might show enough sample code that you can figure out what is happening. Good luck, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ 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 Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSTextView with irregular shape
I want the same text view as Apple iMessages has. I have such bullet image and I plan to use it as textview's shape. Actually this one http://i.piccy.info/i7/e52f246522784139d1c75bf53bb466e6/4-55-1897/58781878/iMessages.png 14.02.2013 22:18, Kyle Sluder пишет: On Thu, Feb 14, 2013, at 12:00 PM, Vyacheslav Karamov wrote: I know how to implement custom text layout. Good example of this I have found in Cocoa Programming Developer's Handbook by David Chisnall. This book gives an example how to implement custo text layout, but I don't understand how to implement custom shape of NSTextView. Because my widget grow in height while user is typing, custom image should also grow and vertical scrollbar appears if needed. Anyway, thank you for the quick response! Okay, you need to elaborate what you mean by custom shape. Do you just want your roughtly-rectangular text field to draw with a rounded corners or something? --Kyle Sluder ___ 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 Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Installing running Xcode
Hi! XCode 2x works pretty good with Panther. We have old PPC mac-mini with 10.3.9 and XCode 2x (I' don't remember exact version) installed. 21.03.2012 18:11, Nick Zitzmann пишет: On Mar 19, 2012, at 5:52 PM, Bill Meng wrote: I've downloaded Xcode 1.0 from Apple to run on OS 10.4. After installing Xcode and running it, clicking on New Project, selecting 'Foundation Tool', giving it a name and clicking Finish I get the following message Stop right there; Xcode 1.0 was intended for Panther, not Tiger. If you're still using Tiger, then you need to use Xcode 2.x. Nick Zitzmann http://www.chronosnet.com/ ___ 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 Subscription: https://lists.apple.com/mailman/options/cocoa-dev/ubuntulist%40yandex.ru This email sent to ubuntul...@yandex.ru ___ 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 Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: How to tell Xcode to forget file
Hi! You need to remove file from the project tree in XCode. 09.02.2012 9:20, Alexander Reichstadt пишет: Hi, I am loosing my mind here. I have a project. It was under git control. When I tried to compile it failed. I noticed there was a wrong file added for iOS, the project was Xcode. I removed the file. It now did compile but warned, now over the absence of this file. I tried everything to get this removed in git, it continued to complain, git wouldn't allow me to delete the file, fatal error, path blablabla. Since this was so utterly senseless and after a day I ended up creating a project from scratch. I added the folder formerly under git control. The folder with the wrong file wasn't even in there when looking at it in the finder, the new project in Xcode had no git activated. STILL it complains about the missing file. Just to make sure, when I write I tried everything, I mean everything, I must have cleaned all targets and so on a hundred times to the point where Xcode crashed trying to clean the clean. Please, can someone tell me how to get rid of this file? Thanks Alex ___ 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 Subscription: https://lists.apple.com/mailman/options/cocoa-dev/ubuntulist%40yandex.ru This email sent to ubuntul...@yandex.ru ___ 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 Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?
Cast window to the type id: if ([window respondsToSelector:@selector(setRestorationClass:)]) { [(id)window setRestorationClass:someClass]; } 06-Sep-11 13:33, Oleg Krupnov пишет: if ([window respondsToSelector:@selector(setRestorationClass:)]) { [window setRestorationClass:someClass]; } ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Graphical Keyboard Map
http://msdn.microsoft.com/en-us/goglobal/bb964651 15-Aug-11 11:07, John Joyce пишет: Does anybody know a programmatic way or a reference resource to get graphical keyboard map or layout for the currently active keyboard? Are these documented anywhere anymore? I would like to provide an on-screen display that is at least a close approximation of the user's keyboard.___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/ubuntulist%40yandex.ru This email sent to ubuntul...@yandex.ru ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Graphical Keyboard Map
http://scripts.sil.org/cms/scripts/page.php?item_id=inputtoollinks#dc9009da ? http://scripts.sil.org/cms/scripts/page.php?site_id=nrsiid=Ukelele 15-Aug-11 11:47, John Joyce пишет: Thanks Vyacheslav, but I am a little more interested in Mac keyboards... ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: How disable File/Open command
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/MenuList/Articles/EnablingMenuItems.html#//apple_ref/doc/uid/2261-BAJBFGED 15-Aug-11 16:08, McLaughlin, Michael P. пишет: I have a Cocoa document app targeting Snow Leopard. It is, in most respects, a standard document app except that, given an input file, it launches a long, multi-threaded computation. Consequently, it can handle only one input file at a time. For the obvious reasons, I would very much like to disable the File/Open… command while the computation is proceeding. However, nothing I have been able to find seems to work with this command. For instance, the code below will disable the Open Recent command but the Open command seems immune. I have also tried to intercept the Open command in myDocController.m with a call to -(BOOL)validateMenuItem:(id)sender ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Using #define a good way for String constants, like enums for NSIntegers?
Don't forget about @: #define MY_FUNNY_STR @Ha-ha-ha! 09-Aug-11 13:47, Devraj Mukherjee пишет: Hi all, I am writing an API client for a REST service, parts of the REST API returns fixed String values. E.g. status of an order. I want to represents these fixed responses as constants. I have represented fixed numeric values using enums and used a typedef to represent the data type. Are Strings defined using #define good enough as String constants? Or Should I be doing this another way? Thanks for your time. ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/ubuntulist%40yandex.ru This email sent to ubuntul...@yandex.ru ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Deprecated methods usage
Hi All! Could I use deprecated methods in my application? I have to support OS X 10.4+ and for example need to obtain file modification date, so could I use [NSFileManager fileAttributesAtPath:traverseLink:] which is deprecated in 10.5? ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Custom NSSlider
I'm currently support project which use custom NSSlider. 16-Jun-11 04:18, Nick пишет: Hello I am wondering if there are any free custom NSSlider controles available with changed knob and trackbar images? The ones similar to QuickTime Player and iTunes (for a player application). Does everyone implement them from scratch by subclassing the cell class? Thank you ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/ubuntulist%40yandex.ru This email sent to ubuntul...@yandex.ru ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Custom NSSlider
Look towards BWToolkit. But note: you should better use XCode 3.2.6, not 4.0.2, cause XCode 4.x lack of plug-ins support. 16-Jun-11 11:20, Nick пишет: Basically I was looking for some freely available fancy controls, that are suitable for players. Like AlphaControls for Delphi (for Windows) or something. Specifically for custom sliders. (I am writing a custom player that can play files over network, and, on the movie view, when the user moves the mouse cursor, he can see some fancy controls for playback control, instead of coco native ones - which in a player look very inappropriate). If you know some websites with this, but for Mac, could you please share? :) Thanks, Nick ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
List of fonts installed?
Hi All! I need to install some fonts to ~/Library/Fonts at the first run of my Application, but how to obtain list of fonts already installed to copy missing fonts only? Thanks you in advance, Vyacheslav. ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: List of fonts installed?
Oops, I forgot to mention that target platform is OS X 10.4+ 08-Jun-11 15:13, Ken Thomases пишет: On Jun 8, 2011, at 6:56 AM, Vyacheslav Karamov wrote: I need to install some fonts to ~/Library/Fonts at the first run of my Application, Why? Are you aware that you can have fonts bundled into your application and they can be used by your application without being installed anywhere else? See here: http://developer.apple.com/library/ios/documentation/general/Reference/InfoPlistKeyReference/Articles/GeneralPurposeKeys.html#//apple_ref/doc/uid/TP40009253-SW8 Regards, Ken ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: List of fonts installed?
I couldn't find these keys in the list of available keys in App property list. I'm using XCode 3.2.6 08-Jun-11 15:23, Ken Thomases пишет: On Jun 8, 2011, at 7:18 AM, Vyacheslav Karamov wrote: 08-Jun-11 15:13, Ken Thomases пишет: On Jun 8, 2011, at 6:56 AM, Vyacheslav Karamov wrote: I need to install some fonts to ~/Library/Fonts at the first run of my Application, Why? Are you aware that you can have fonts bundled into your application and they can be used by your application without being installed anywhere else? See here: http://developer.apple.com/library/ios/documentation/general/Reference/InfoPlistKeyReference/Articles/GeneralPurposeKeys.html#//apple_ref/doc/uid/TP40009253-SW8 Oops, I forgot to mention that target platform is OS X 10.4+ That link has ios in its URL, but it's applicable to Mac OS X. (The document it's a part of applies to both, with a section for each.) Cheers, Ken ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Declaring and initialization of C array.
I agree with you, but I guess he missed semicolon just before an array declaration because he got *compiler* error, not linker! Correct declaration could be of two forms: 1) In header file static int a[2] = {1,2}; or static int a[] = {1,2}; 2) In header file extern int a[2]; In *.m file: int a[2] = {1,2}; 01-Jun-11 19:14, Ron Hunsinger пишет: The problem is that while globals can be declared in as many compilation units as you wish, they must be defined in only one. That means that a definition cannot appear in a file that's #included into multiple compilation units. It would be perfectly fine to put that initializer in a .h file, as long as the .h file is #included into only one .c file. That's not how we normally use .h files, though, because it would make the name visible in only the one compilation unit that included it. The whole point of having separate .h and .c files is to work around the declared in multiple units: OK, defined in multiple units: BAD limitation, without giving up the safety of declared in multiple source files: BAD.___ ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
How to extract files from zip archive?
Hi All! I need to extract zip-archive content to ~/Library/Application Support/My Program/Shared at the first launch. What the best way to do it? I tried to NSString * listsPath = STR_ADDPATH([[NSBundle mainBundle] resourcePath], @lists.zip); if (0 == folderSize FileTools::DoesFileExist(filesystem_rep(listsPath))) { NSTask * task = [[NSTask alloc] init]; [task setLaunchPath:@/usr/bin/unzip]; NSArray * args = [NSArray arrayWithObjects:@-a , listsPath, @ -d , sharedPath, nil]; [task setArguments: args]; [task launch]; [task waitUntilExit]; int status = [task terminationStatus]; [task release]; if (status) { NSLog(@Failed to unpack lists to %@, sharedPath); } } but status is 10, I guess because spaces are in the path. ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
How to remove menu from WebView?
Hi All! How to remove pop-up menu from WebView instance? ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: How to remove menu from WebView?
OS X 10.4+ 23-May-11 12:36, Mike Abdullah пишет: Mac or iOS? It's hard to tell from your question. On 23 May 2011, at 10:28, Vyacheslav Karamov wrote: Hi All! How to remove pop-up menu from WebView instance? ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40mikeabdullah.net This email sent to cocoa...@mikeabdullah.net ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
How to disable menu item?
Hi all! How to disable menu or menu item programmatically? ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Moving windows from one NIB to another
Hi All! I have to support pretty large project which has all windows in a single NIB. I tried to create another NIB and then moved some windows from Main.NIB to it. But application fails to load. I suggest that app couldn't load one of the panels at start, but I have no idea which steps I need to do. Thank you in advance, Vyacheslav. ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: L-shaped custom view in Cocoa?
Yes, I need to write virtual keyboard. 05-May-11 21:11, Kyle Sluder пишет: On Thu, May 5, 2011 at 10:59 AM, Shawn Bakhtiarshashan...@hotmail.com wrote: What? It does too work! Once the window is setup correctly. This is how a do all my transparent windows, and for any naysayers out there here is the code: http://www.inksystemsinc.com/images/lshaped_window_proof.tar.gz I have seen no indication from the OP that he is trying to draw a transparent window. All he's said is that he wants an L-shaped view. ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
L-shaped custom view in Cocoa?
Hi All! I need to make custom view in the form of letter L. How to do it? Thank you in advance, Vyacheslav. ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: L-shaped custom view in Cocoa?
Yes, I understand, I meant want to know how to restrict drawing and responding to events to L-shaped area. 04-May-11 17:38, Steve Christensen пишет: All views are rectangular in shape. You can restrict drawing and responding to events to an L-shaped area, but the view itself will still be a rectangle. On May 4, 2011, at 6:41 AM, Vyacheslav Karamov wrote: I need to make custom view in the form of letter L. How to do it? ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
How to store main window frame to user defaults?
Hi All! I need to save main window size and position to user defaults: NSValue * rect = [NSValue valueWithRect: [[NSApp mainWindow] frame]]; [[NSUserDefaults standardUserDefaults] setObject:rect forKey:@MainWndFrame]; but console output is: 2011-04-28 11:45:00.139 UserDefaults[32801:a0f] *** -[NSUserDefaults setObject:forKey:]: Attempt to insert non-property value 'NSRect: {{525, 701}, {303, 99}}' of class 'NSConcreteValue'. ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: How to store main window frame to user defaults?
I can't use Interface builder, because it crashes while opening NIB file. I'm currently using XCode 3.2.6, but NIB file was created with IB 2.x using plug-in. So, where is it better to save main window frame? I've tried to do do it in [NSWindow close]: - (void) close { NSString * rc = NSStringFromRect([[NSApp mainWindow] frame]); NSUserDefaults * defaults = [NSUserDefaults standardUserDefaults]; [defaults setObject: rc forKey:@MainWndFrame]; [super close]; } but it doesn't work. 28-Apr-11 12:14, Aaron Burghardt пишет: Use NSStringFromRect() and NSRectFromString() to convert to/from a string to store in the defaults. However, it might be easier to set frameAutosaveName and let the window save and restore the frame itself. Just enter the key in the autosave attribute in Interface Builder and it should work. Aaron On Apr 28, 2011, at 4:50 AM, Vyacheslav Karamov wrote: Hi All! I need to save main window size and position to user defaults: NSValue * rect = [NSValue valueWithRect: [[NSApp mainWindow] frame]]; [[NSUserDefaults standardUserDefaults] setObject:rect forKey:@MainWndFrame]; but console output is: 2011-04-28 11:45:00.139 UserDefaults[32801:a0f] *** -[NSUserDefaults setObject:forKey:]: Attempt to insert non-property value 'NSRect: {{525, 701}, {303, 99}}' of class 'NSConcreteValue'. ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/aaron.burghardt%40gmail.com This email sent to aaron.burgha...@gmail.com ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: How to store main window frame to user defaults?
It works! Thank you! P.S. But I still can't understand why frame saving code doesn't work from [NSWindow close] 28-Apr-11 14:35, Matt Gough пишет: How about calling just calling [NSWindow setFrameAutosaveName:@YourAutosaveName] during awakeFromNib? Matt On 28 Apr 2011, at 11:32, Vyacheslav Karamov wrote: I can't use Interface builder, because it crashes while opening NIB file. I'm currently using XCode 3.2.6, but NIB file was created with IB 2.x using plug-in. So, where is it better to save main window frame? I've tried to do do it in [NSWindow close]: - (void) close { NSString * rc = NSStringFromRect([[NSApp mainWindow] frame]); NSUserDefaults * defaults = [NSUserDefaults standardUserDefaults]; [defaults setObject: rc forKey:@MainWndFrame]; [super close]; } but it doesn't work. 28-Apr-11 12:14, Aaron Burghardt пишет: Use NSStringFromRect() and NSRectFromString() to convert to/from a string to store in the defaults. However, it might be easier to set frameAutosaveName and let the window save and restore the frame itself. Just enter the key in the autosave attribute in Interface Builder and it should work. Aaron On Apr 28, 2011, at 4:50 AM, Vyacheslav Karamov wrote: Hi All! I need to save main window size and position to user defaults: NSValue * rect = [NSValue valueWithRect: [[NSApp mainWindow] frame]]; [[NSUserDefaults standardUserDefaults] setObject:rect forKey:@MainWndFrame]; but console output is: 2011-04-28 11:45:00.139 UserDefaults[32801:a0f] *** -[NSUserDefaults setObject:forKey:]: Attempt to insert non-property value 'NSRect: {{525, 701}, {303, 99}}' of class 'NSConcreteValue'. ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/aaron.burghardt%40gmail.com This email sent to aaron.burgha...@gmail.com ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/mgough%40humyo.com This email sent to mgo...@humyo.com ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Adding custom view in IB
15-Apr-11 00:34, Luc Van Bogaert пишет: Hi, I know how to subclass NSView to create a custom view, and add it to a window as a subview using interface builder. But when I want to control my custom view with a viewcontroller object, both contained in a seperate nib file, I'm getting a bit confused about how I can use IB to do the same. For now, I am adding my custom view, which is loaded from the nib file when instantiating the view controller, to another view programmatically. This works, but I find it's getting too hard having to recalculate the custom view's frame whenever the program window size has changed. So I would like to keep using IB to add my custom view to its container, and benefit from the sizing and location attributes IB has to offer. How do I go about to using the custom view, its nib file and the view controller in IB? Could someone please point me in the right direction? Thanks, If I understand you correctly, you should write Interface Builder plug-in, but plug-ins are supported by XCode prior to 4x. ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Mac App Store requirements
Is it required that my application has Drag'n'Drop support? 11-Apr-11 02:54, Tom Hohensee пишет: Yes I second what Todd has said. I am currently working on receipt validation for my third app store app. I did not do it for my first two apps, too many other thinks to worry about. The documentation is not very good at this point. Tom On Apr 10, 2011, at 6:45 PM, Todd Heberlein wrote: On Apr 10, 2011, at 4:32 PM, davel...@mac.com wrote: And you also have add code to verify a valid receipt. There's a few samples of how to do this on github (you should modify them to make the app more difficult to crack unless you're giving the app away for free). Apple has more about this that you can read once you join the developer program. Validating the receipt is optional. Having recently gone through this with my first application, I generally would not recommend it for version 1.0 of someone's first app (unless it is a very expensive app). It is surprisingly complex and poorly documented, and there are too many other things to worry about when getting your first app through the approval process. If you want copy protection (which is what receipt validation in about), I would leave it until the first update to your application or the second app you submit. Todd ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Mac App Store requirements
I have $99 account, so I'll try to find the doc. 11-Apr-11 15:24, Graham Cox пишет: On 11/04/2011, at 10:17 PM, Vyacheslav Karamov wrote: Is it required that my application has Drag'n'Drop support? No. Why don't you just download the requirements document? The requirements relate mainly to making sure your app plays nice, and have little to say about what functionality it has to have or omit. If you want to sell through the App Store, you have to sign up for the $99/year developer account, so even if you can't get the doc until you do that, you still have to do that... --Graham ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Framework Installation Directory
08-Apr-11 15:53, Mr. Gecko пишет: I need help with the Installation Directory for a framework that will be shared between a application and 2 daemons within side it. I think I may be able to do it if I were to have the 2 daemons executables in the MacOS path or another folder such as one named Daemons in the Contents folder. I am needing at least 1 of the daemons to be a bundle based daemon as it'll have some UI elements and such. The installation directory that I have been doing is @executable_path/../Frameworks which according to this, it'll go back 1 directory from the path of the executable and into the Frameworks directory to find the framework. The reason I am thinking in doing this as a framework is because some of the code I am using will be used in the daemons such as core code. Thanks for any help, Mr. Gecko___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/ubuntulist%40yandex.ru This email sent to ubuntul...@yandex.ru I'm not sure what you need exactly, but it hope it would be helpful for you http://www.dribin.org/dave/blog/archives/2009/11/15/rpath/ http://www.mikeash.com/?page=pyblog/friday-qa-2009-11-06-linking-and-install-names.html http://lapcatsoftware.com/blog/2007/08/11/embedding-frameworks-in-loadable-bundles/ ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Help with Custom Control
26-Mar-11 00:16, Kyle Sluder пишет: On Fri, Mar 25, 2011 at 2:48 PM, WTjrca...@gmail.com wrote: I'm downloading 4.0.1 at this very moment so I didn't know that IB plugins are officially deprecated. That really indeed sucks. File bugs at http://bugreport.apple.com. If you don't, the developers won't know that removing this functionality affects you. --Kyle Sluder Is it allowed to create duplicate bugs? I've already created Bug ID# 9168578. ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Convert nib file usage to dynamically created controls
Hi All! I'm pretty new to Cocoa and I (alone) have to support large Cocoa-based project which uses NIBs with custom controls. I've rewritten IB 3x plug-in, but IB crashes while opening some of the NIBs. How to convert these NIBs to dynamically created controls? ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Adding tabs programaticaly (solved)?
21-Mar-11 16:08, Vyacheslav Karamov пишет: Hi All! I'm writing IB 3.2 plug-in for NSTabView descendant. After adding new tab CLTabViewItem * item = [[CLTabViewItem alloc] init]; [item setLabel: @new Item]; [tabView addTabViewItem: item]; I'm trying to select it and edit is properties. But IB crashes with error messages. 2011-03-21 15:44:35.899 Interface Builder[2398:a0f] Message: ibObjectAtLocation: asked to object not in the document 2011-03-21 15:45:23.413 Interface Builder[2398:a0f] Assertion Failure: [[controller document] containsObject:self] 2011-03-21 15:45:23.414 Interface Builder[2398:a0f] File: /SourceCache/InterfaceBuilder/InterfaceBuilder-851/Framework/PublicCategories/IBObjectIntegration.m 2011-03-21 15:45:23.414 Interface Builder[2398:a0f] Line: 213 2011-03-21 15:45:23.430 Interface Builder[2398:a0f] Backtrace: 0 InterfaceBuilderKit 0x0011f909 -[NSView(IBViewIntegration) ibObjectAtLocation:inWindowController:] + 1017 1 CocoaPlugin 0x1283b758 IBShouldSubstituteSwapperForObjectInContextOfArchiver + 48132 2 InterfaceBuilderKit 0x0011f848 -[NSView(IBViewIntegration) ibObjectAtLocation:inWindowController:] + 824 3 InterfaceBuilderKit 0x0011e00d -[NSObject(IBFrameworkObjectIntegration) ibObjectAtLocation:inWindowController:] + 708 4 InterfaceBuilderKit 0x001b2867 -[IBViewEditorWindowController objectAtPoint:] + 79 5 InterfaceBuilderKit 0x00122c07 -[IBViewEditorWindowController trackMeasurementsWithEvent:atPoint:] + 58 6 InterfaceBuilderKit 0x0011629c -[IBViewEditorWindowController interceptEvent:] + 289 7 InterfaceBuilderKit 0x00116140 -[IBEditableWindow sendEvent:] + 70 8 AppKit 0x91a2352b -[NSApplication sendEvent:] + 5683 9 Interface Builder0x4615 10 AppKit 0x919b72a7 -[NSApplication run] + 917 11 AppKit 0x919af2d9 NSApplicationMain + 574 12 Interface Builder0x22c5 13 Interface Builder0x0003 What I did wrong? ___ Solution wasn't obvious: @implementation CLTabView (InspectorIntegration) - (void)addObject:(id)object toParent:(id)parent { IBDocument * document = [IBDocument documentForObject:parent]; [document addObject:object toParent:parent]; } ... @end @implementation CLTabView - (void)addTabViewItem:(CLTabViewItem *)tabViewItem { [super addTabViewItem: tabViewItem]; [self addObject:tabViewItem toParent:self]; [self addObject:[tabViewItem view] toParent:tabViewItem]; } ... @end ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Adding tabs programaticaly?
Hi All! I'm writing IB 3.2 plug-in for NSTabView descendant. After adding new tab CLTabViewItem * item = [[CLTabViewItem alloc] init]; [item setLabel: @new Item]; [tabView addTabViewItem: item]; I'm trying to select it and edit is properties. But IB crashes with error messages. 2011-03-21 15:44:35.899 Interface Builder[2398:a0f] Message: ibObjectAtLocation: asked to object not in the document 2011-03-21 15:45:23.413 Interface Builder[2398:a0f] Assertion Failure: [[controller document] containsObject:self] 2011-03-21 15:45:23.414 Interface Builder[2398:a0f] File: /SourceCache/InterfaceBuilder/InterfaceBuilder-851/Framework/PublicCategories/IBObjectIntegration.m 2011-03-21 15:45:23.414 Interface Builder[2398:a0f] Line: 213 2011-03-21 15:45:23.430 Interface Builder[2398:a0f] Backtrace: 0 InterfaceBuilderKit 0x0011f909 -[NSView(IBViewIntegration) ibObjectAtLocation:inWindowController:] + 1017 1 CocoaPlugin 0x1283b758 IBShouldSubstituteSwapperForObjectInContextOfArchiver + 48132 2 InterfaceBuilderKit 0x0011f848 -[NSView(IBViewIntegration) ibObjectAtLocation:inWindowController:] + 824 3 InterfaceBuilderKit 0x0011e00d -[NSObject(IBFrameworkObjectIntegration) ibObjectAtLocation:inWindowController:] + 708 4 InterfaceBuilderKit 0x001b2867 -[IBViewEditorWindowController objectAtPoint:] + 79 5 InterfaceBuilderKit 0x00122c07 -[IBViewEditorWindowController trackMeasurementsWithEvent:atPoint:] + 58 6 InterfaceBuilderKit 0x0011629c -[IBViewEditorWindowController interceptEvent:] + 289 7 InterfaceBuilderKit 0x00116140 -[IBEditableWindow sendEvent:] + 70 8 AppKit 0x91a2352b -[NSApplication sendEvent:] + 5683 9 Interface Builder0x4615 10 AppKit 0x919b72a7 -[NSApplication run] + 917 11 AppKit 0x919af2d9 NSApplicationMain + 574 12 Interface Builder0x22c5 13 Interface Builder0x0003 What I did wrong? ___ 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 Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com