Deprecated methods usage

2011-08-03 Thread Vyacheslav Karamov
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-d

Re: Using #define a good way for String constants, like enums for NSIntegers?

2011-08-09 Thread Vyacheslav Karamov
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

Re: Graphical Keyboard Map

2011-08-15 Thread Vyacheslav Karamov
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-scree

Re: Graphical Keyboard Map

2011-08-15 Thread Vyacheslav Karamov
http://scripts.sil.org/cms/scripts/page.php?item_id=inputtoollinks#dc9009da ? http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=Ukelele 15-Aug-11 11:47, John Joyce пишет: Thanks Vyacheslav, but I am a little more interested in Mac keyboards... _

Re: How disable File/Open command

2011-08-15 Thread Vyacheslav Karamov
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

Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?

2011-09-06 Thread Vyacheslav Karamov
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]; }

Re: How to get mount options of a mounted volume?

2011-10-11 Thread Vyacheslav Karamov
Hi! Have you tried [NSWorkspace getFileSystemInfoForPath:isRemovable:isWritable:isUnmountable:description:type:] ? http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSWorkspace_Class/Reference/Reference.html#//apple_ref/occ/instm/NSWorkspace/getFile

Re: How to tell Xcode to forget file

2012-02-08 Thread Vyacheslav Karamov
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 rem

Adding tabs programaticaly?

2011-03-21 Thread 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 crashe

Re: Adding tabs programaticaly (solved)?

2011-03-22 Thread Vyacheslav Karamov
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];

Re: Help with Custom Control

2011-03-28 Thread Vyacheslav Karamov
26-Mar-11 00:16, Kyle Sluder пишет: On Fri, Mar 25, 2011 at 2:48 PM, WT 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

Convert nib file usage to dynamically created controls

2011-03-28 Thread Vyacheslav Karamov
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?

Re: Framework Installation Directory

2011-04-08 Thread Vyacheslav Karamov
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

Re: Mac App Store requirements

2011-04-11 Thread Vyacheslav Karamov
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 documentat

Re: Mac App Store requirements

2011-04-11 Thread Vyacheslav Karamov
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 requireme

Re: Adding custom view in IB

2011-04-15 Thread Vyacheslav Karamov
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 con

How to store main window frame to user defaults?

2011-04-28 Thread Vyacheslav Karamov
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]

Re: How to store main window frame to user defaults?

2011-04-28 Thread Vyacheslav Karamov
RectFromString() 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,

Re: How to store main window frame to user defaults?

2011-04-28 Thread Vyacheslav Karamov
8 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

L-shaped custom view in Cocoa?

2011-05-04 Thread Vyacheslav Karamov
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 modera

Re: L-shaped custom view in Cocoa?

2011-05-04 Thread Vyacheslav Karamov
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

Re: L-shaped custom view in Cocoa?

2011-05-06 Thread Vyacheslav Karamov
Yes, I need to write virtual keyboard. 05-May-11 21:11, Kyle Sluder пишет: On Thu, May 5, 2011 at 10:59 AM, Shawn Bakhtiar 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://w

Moving windows from one NIB to another

2011-05-12 Thread Vyacheslav Karamov
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 ne

Re: Moving windows from one NIB to another(solved)

2011-05-12 Thread Vyacheslav Karamov
loadNibNamed saved me :) 12-May-11 15:14, Vyacheslav Karamov пишет: 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

How to disable menu item?

2011-05-19 Thread Vyacheslav Karamov
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/

How to remove menu from WebView?

2011-05-23 Thread Vyacheslav Karamov
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/

Re: How to remove menu from WebView?

2011-05-23 Thread Vyacheslav Karamov
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 (

How to extract files from zip archive?

2011-05-30 Thread Vyacheslav Karamov
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::DoesFi

Re: Declaring and initialization of C array.

2011-06-02 Thread Vyacheslav Karamov
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

List of fonts installed?

2011-06-08 Thread Vyacheslav Karamov
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

Re: List of fonts installed?

2011-06-08 Thread Vyacheslav Karamov
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

Re: List of fonts installed?

2011-06-08 Thread Vyacheslav Karamov
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

Re: Custom NSSlider

2011-06-16 Thread Vyacheslav Karamov
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 i

Re: Custom NSSlider

2011-06-16 Thread Vyacheslav Karamov
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) o

Re: Installing & running Xcode

2012-03-21 Thread Vyacheslav Karamov
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 inst

NSTextView with irregular shape

2013-02-14 Thread Vyacheslav Karamov
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) Pleas

Re: NSTextView with irregular shape

2013-02-14 Thread Vyacheslav Karamov
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 wrote: Hello All! I need to implement NSTextView descendant similar to one used in Mac iMessages App. I have implemented live

Re: NSTextView with irregular shape

2013-02-14 Thread Vyacheslav Karamov
ause 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

Re: NSTextView with irregular shape

2013-02-14 Thread Vyacheslav Karamov
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

Scrollable GridView with fixed row and column

2013-10-15 Thread Vyacheslav Karamov
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. __

Re: Scrollable GridView with fixed row and column

2013-10-15 Thread Vyacheslav Karamov
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 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

Re: Scrollable GridView with fixed row and column

2013-10-15 Thread Vyacheslav Karamov
Thanks Quincey! How to implement scrolling? 15.10.2013 21:43, Quincey Morris wrote: On Oct 15, 2013, at 11:05 , Vyacheslav Karamov <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/li

Re: Resizing Detail View of UISplitViewController

2014-01-09 Thread Vyacheslav Karamov
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 wrote: I'm using a UISplitViewController in my iPad app and I don't really like the way the popover view slides in and cove

Re: Resizing Detail View of UISplitViewController

2014-01-09 Thread Vyacheslav Karamov
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 wrote: In other words, you’d like