Re: nspopbutton short title possible?

2012-06-18 Thread Rick C.
Yeah that's what I was missing thanks for the time!


On Jun 19, 2012, at 1:44 PM, Kyle Sluder wrote:

> Take a look at -[NSPopUpButtonCell setUsesItemFromMenu:].
> 
> --Kyle Sluder
> 
> On Jun 18, 2012, at 10:20 PM, "Rick C."  wrote:
> 
>> That's what I'm doing and it does change the title, but when I do it will 
>> create a new menu item with the new name that I assigned.  It also says this 
>> in the docs.  But there must be a way right am I missing something?
>> 
>> 
>> On Jun 19, 2012, at 12:46 PM, Graham Cox wrote:
>> 
>>> 
>>> On 19/06/2012, at 2:24 PM, Rick C. wrote:
>>> 
 Hi again,
 
 Is it not possible somehow to have the title in an nspopbutton to show a 
 shortened version of one of the menu items?  So for example if I have a 
 menu item with the title "Advanced Mode" when choosing it I would like to 
 set the title that shows on the button to "Advanced" but leave the menu 
 item unchanged.  Currently it will add a new menu item named "Advanced."  
 I have done this before with segmented control but it would be easier to 
 use a popup button if possible.  Thanks,
>>> 
>>> 
>>> When you select your advanced mode within the controller, just set the 
>>> -title: of the popup button to what you want. This will replace the title 
>>> which is automatically assigned from the menu item.
>>> 
>>> --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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: nspopbutton short title possible?

2012-06-18 Thread Kyle Sluder
Take a look at -[NSPopUpButtonCell setUsesItemFromMenu:].

--Kyle Sluder

On Jun 18, 2012, at 10:20 PM, "Rick C."  wrote:

> That's what I'm doing and it does change the title, but when I do it will 
> create a new menu item with the new name that I assigned.  It also says this 
> in the docs.  But there must be a way right am I missing something?
> 
> 
> On Jun 19, 2012, at 12:46 PM, Graham Cox wrote:
> 
>> 
>> On 19/06/2012, at 2:24 PM, Rick C. wrote:
>> 
>>> Hi again,
>>> 
>>> Is it not possible somehow to have the title in an nspopbutton to show a 
>>> shortened version of one of the menu items?  So for example if I have a 
>>> menu item with the title "Advanced Mode" when choosing it I would like to 
>>> set the title that shows on the button to "Advanced" but leave the menu 
>>> item unchanged.  Currently it will add a new menu item named "Advanced."  I 
>>> have done this before with segmented control but it would be easier to use 
>>> a popup button if possible.  Thanks,
>> 
>> 
>> When you select your advanced mode within the controller, just set the 
>> -title: of the popup button to what you want. This will replace the title 
>> which is automatically assigned from the menu item.
>> 
>> --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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: nspopbutton short title possible?

2012-06-18 Thread Rick C.
That's what I'm doing and it does change the title, but when I do it will 
create a new menu item with the new name that I assigned.  It also says this in 
the docs.  But there must be a way right am I missing something?


On Jun 19, 2012, at 12:46 PM, Graham Cox wrote:

> 
> On 19/06/2012, at 2:24 PM, Rick C. wrote:
> 
>> Hi again,
>> 
>> Is it not possible somehow to have the title in an nspopbutton to show a 
>> shortened version of one of the menu items?  So for example if I have a menu 
>> item with the title "Advanced Mode" when choosing it I would like to set the 
>> title that shows on the button to "Advanced" but leave the menu item 
>> unchanged.  Currently it will add a new menu item named "Advanced."  I have 
>> done this before with segmented control but it would be easier to use a 
>> popup button if possible.  Thanks,
> 
> 
> When you select your advanced mode within the controller, just set the 
> -title: of the popup button to what you want. This will replace the title 
> which is automatically assigned from the menu item.
> 
> --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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: nspopbutton short title possible?

2012-06-18 Thread Graham Cox

On 19/06/2012, at 2:24 PM, Rick C. wrote:

> Hi again,
> 
> Is it not possible somehow to have the title in an nspopbutton to show a 
> shortened version of one of the menu items?  So for example if I have a menu 
> item with the title "Advanced Mode" when choosing it I would like to set the 
> title that shows on the button to "Advanced" but leave the menu item 
> unchanged.  Currently it will add a new menu item named "Advanced."  I have 
> done this before with segmented control but it would be easier to use a popup 
> button if possible.  Thanks,


When you select your advanced mode within the controller, just set the -title: 
of the popup button to what you want. This will replace the title which is 
automatically assigned from the menu item.

--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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


nspopbutton short title possible?

2012-06-18 Thread Rick C.
Hi again,

Is it not possible somehow to have the title in an nspopbutton to show a 
shortened version of one of the menu items?  So for example if I have a menu 
item with the title "Advanced Mode" when choosing it I would like to set the 
title that shows on the button to "Advanced" but leave the menu item unchanged. 
 Currently it will add a new menu item named "Advanced."  I have done this 
before with segmented control but it would be easier to use a popup button if 
possible.  Thanks,

rc   
___

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: CodeSigning with Developer ID Cert

2012-06-18 Thread Quincey Morris
On Jun 18, 2012, at 19:05 , danchik wrote:

> We obtained the Apple Developer ID code signing cert, and signed our pkg with 
> it.
> 
> When testing with different OSes it produced several errors.
> 
> On Lion (turning on gatekeeper on), prior to installation the "Untrusted 
> Cert" (paraphrasing) warning came up.
> 
> On Snow Leopard -  "Damaged/Invalid" (paraphrasing) error came up and halted 
> the installation (and this is without turning anything on like gatekeeper)
> 
> I understand it is because the Apple's intermediate certificate was not 
> present on the target machines, but that is the case for all the macs 
> (non-dev systems) in the world.
> 
> So basically by signing the installer pkg, the installation on Snow Leopard 
> completely broke.  What should be done to make sure the product can be 
> installed on systems that do not have the intermediate certificates? for all 
> the 10.5s, 10.6s and 10.7s in the world?

This came up on the Xcode list very recently. If you start reading here:

http://lists.apple.com/archives/xcode-users/2012/Jun/msg00051.html

and follow the thread for a few messages, you should get the answer you need.
___

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


CodeSigning with Developer ID Cert

2012-06-18 Thread danchik

Hello,

We obtained the Apple Developer ID code signing cert, and signed our pkg 
with it.


When testing with different OSes it produced several errors.

On Lion (turning on gatekeeper on), prior to installation the "Untrusted 
Cert" (paraphrasing) warning came up.


On Snow Leopard -  "Damaged/Invalid" (paraphrasing) error came up and halted 
the installation (and this is without turning anything on like gatekeeper)


I understand it is because the Apple's intermediate certificate was not 
present on the target machines, but that is the case for all the macs 
(non-dev systems) in the world.


So basically by signing the installer pkg, the installation on Snow Leopard 
completely broke.  What should be done to make sure the product can be 
installed on systems that do not have the intermediate certificates? for all 
the 10.5s, 10.6s and 10.7s in the world?



___

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: Applescript to ObjC program communications?

2012-06-18 Thread Shane Stanley
On 19/06/2012, at 10:03 AM, William Squires wrote:

>  What's the best way for an applescript to send the info to my ObjC program 
> (for 10.6 or later)?

Make your application scriptable. If it's a one-off thing, methods in an 
application category exposed as an application property is the easiest way to 
go.

>  Secondly, how do I get an applescript to obtain the subject: line of an 
> email, assuming Mail.app launched the applescript in question when the rule 
> fired?

That's more a question for another list, but the "perform mail action with 
messages" handler is passed a list of the messages; from there you can easily 
get the subject.

>  Thirdly, are rules in Mail.app synchronous (w/regards to calling an 
> Applescript)? i.e. will they wait for the script to finish?

I imagine they're as synchronous as any other rule action. But not all 
AppleScript commands are synchronous (most are, but some like "check for new 
mail" are not).

-- 
Shane Stanley 
'AppleScriptObjC Explored' 


___

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: iOS disk full?

2012-06-18 Thread Jens Alfke

On Jun 18, 2012, at 5:08 PM, William Squires wrote:

>  I know iOS will give your app the didReceiveMemoryWarning:, but what about 
> if you try to use all the available space? (i.e. your iDevice is stuffed with 
> music, videos, apps, photos, and so on) Should the app just catch an 
> NSException?

Fundamentally, you'll get errors from file operations that fail due to 
insufficient disk space. The errors depend on the API; e.g. for POSIX calls 
you'll see ENOSPC.

However, running out of disk space is a pretty bad situation for the OS as a 
whole, so generally it doesn't let things get that far. As disk space runs out 
it'll start notifying the user, and it might also start freezing apps (OS X 
does this.) In the worst case, you can pretty much lock up the whole device if 
space runs out.

If your app has the potential to create large files, it would be polite to 
preflight disk space and stop writing if the free space gets below a few 
hundred megabytes.

—Jens

smime.p7s
Description: S/MIME cryptographic signature
___

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: nstableview reload with animation possible?

2012-06-18 Thread Rick C.
Thanks I will take a look!


On Jun 19, 2012, at 3:59 AM, Marc Respass wrote:

>> What I'm basically trying to do is call reloadData but with animation and I 
>> can't see how to do it?  I know about removing/inserting rows with animation 
>> and I tried this, but I keep crashing and I would think it's because I'm 
>> removing rows and inserting rows after my datasource has been modified.  
>> That's why normally I use reloadData and it works fine.  Also, it seems 
>> there is a method to do this in iOS but it's not available on Mac.  So is it 
>> possible to do this?  Or can I only use the animation when removing 
>> inserting rows without changing the modifying the datasource?  Thanks,
>> 
> Hi Rick,
> 
> You probably want
> - (void)reloadDataForRowIndexes:(NSIndexSet *)rowIndexes 
> columnIndexes:(NSIndexSet *)columnIndexes NS_AVAILABLE_MAC(10_6);
> 
> In my app, I use it to update rows which get updated one at a time but you 
> can provide an index set with many rows. You might be able to use -rowsInRect 
> which I haven't used passing the rect of the table view's scroll view, I 
> would think. Then you can create the index set with 
> -indexSetWithIndexesInRange:
> 
> Hope this helps
> Marc
> 
> ___
> 
> 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/rickcorteza%40gmail.com
> 
> This email sent to rickcort...@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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: A color well in a table view?

2012-06-18 Thread William Squires
Not sure if this would be helpful, but maybe a custom NSCell subclass that acts 
like a color well?

On Jun 7, 2012, at 10:32 AM, Sean McBride wrote:

> On Thu, 7 Jun 2012 13:53:49 +0100, H. Miersch said:
> 
>> In my Mac app I have a table view which so far only displays text and
>> numbers. Now I'd like to put color wells in one column (to supply colors
>> for the lines in the diagram) and checkboxes in another (to decide
>> whether each line should be drawn or not). Can I do that? If so, what's
>> the best way to do that? Is it as easy as modifying
>> tableview:objectvaluefortablecolumn:row: to retrieve the color wells
>> from the array and return them to the table view, or are there some
>> hoops I have to jump through?
> 
> Unlike most NSControls, there is no NSCell for NSColorWell.  But 10.7 did add 
> view-based tableviews, so if you can require 10.7+, that's probably your best 
> bet.  I've been meaning to try it myself...
> 
> -- 
> 
> Sean McBride, B. Eng s...@rogue-research.com
> Rogue Researchwww.rogue-research.com 
> Mac Software Developer  Montréal, Québec, Canada
> 
> 
> 
> ___
> 
> 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/wsquires%40satx.rr.com
> 
> This email sent to wsqui...@satx.rr.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

iOS disk full?

2012-06-18 Thread William Squires
  I know iOS will give your app the didReceiveMemoryWarning:, but what about if 
you try to use all the available space? (i.e. your iDevice is stuffed with 
music, videos, apps, photos, and so on) Should the app just catch an 
NSException?
  What's the Apple recommended way of playing nice w/regards to writing files 
or sqlite3 databases that may grow to be too big?


___

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


Applescript to ObjC program communications?

2012-06-18 Thread William Squires
  Okay, here's what I'd like to do:

1) Have a Mail.app rule fire an applescript when an email triggers the rule.
2) Grab the "subject:" line and the "to:" line from the email, and send that to 
another program which I'll write

  What's the best way for an applescript to send the info to my ObjC program 
(for 10.6 or later)? The program will probably be a low-level service that 
waits on a specific port and runs in the background. It'll take the info, then 
file it into a table in an SQLite3 database. A different program will pull and 
collate the info in the DB.
  Secondly, how do I get an applescript to obtain the subject: line of an 
email, assuming Mail.app launched the applescript in question when the rule 
fired?
  Thirdly, are rules in Mail.app synchronous (w/regards to calling an 
Applescript)? i.e. will they wait for the script to finish?
___

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: updates for retina

2012-06-18 Thread Nathan Sims
On Jun 15, 2012, at 11:05 PM, Ken Thomases wrote:

> High Resolution Guidelines for OS X
> 

Is there an equivalent iOS document?


___

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: nstableview reload with animation possible?

2012-06-18 Thread Marc Respass
> What I'm basically trying to do is call reloadData but with animation and I 
> can't see how to do it?  I know about removing/inserting rows with animation 
> and I tried this, but I keep crashing and I would think it's because I'm 
> removing rows and inserting rows after my datasource has been modified.  
> That's why normally I use reloadData and it works fine.  Also, it seems there 
> is a method to do this in iOS but it's not available on Mac.  So is it 
> possible to do this?  Or can I only use the animation when removing inserting 
> rows without changing the modifying the datasource?  Thanks,
> 
Hi Rick,

You probably want
- (void)reloadDataForRowIndexes:(NSIndexSet *)rowIndexes 
columnIndexes:(NSIndexSet *)columnIndexes NS_AVAILABLE_MAC(10_6);

In my app, I use it to update rows which get updated one at a time but you can 
provide an index set with many rows. You might be able to use -rowsInRect which 
I haven't used passing the rect of the table view's scroll view, I would think. 
Then you can create the index set with -indexSetWithIndexesInRange:

Hope this helps
Marc

___

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: Findbar highlighting

2012-06-18 Thread Tim Schröder
Yes, this should be possible, have a look at the NSTextFinder class and 
especially at the NSTextFinderClient protocol.

Tim

Am 18.06.2012 um 20:03 schrieb ecir hana:

> Hello,
> 
> Since Lion NSTextView has this very nice feature - when searching for a
> text as a user it also highlights all the occurrences of given search
> string.
> 
> Is it possible to programmatically "force" triggering the highlighting? In
> other words, is it possible to re-use the functionality to highlight some
> string, without actually using the findbar?
> 
> Have a nice day,
> 
> Ecir Hana
> ___
> 
> 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/tim%40timschroeder.net
> 
> This email sent to t...@timschroeder.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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Findbar highlighting

2012-06-18 Thread ecir hana
Hello,

Since Lion NSTextView has this very nice feature - when searching for a
text as a user it also highlights all the occurrences of given search
string.

Is it possible to programmatically "force" triggering the highlighting? In
other words, is it possible to re-use the functionality to highlight some
string, without actually using the findbar?

Have a nice day,

Ecir Hana
___

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: Parser Support

2012-06-18 Thread Jens Alfke

On Jun 18, 2012, at 12:22 AM, Appa Rao Mulpuri wrote:

> Basically I need to construct two dictionaries from that file. One with 'ID' 
> vs 'Actual String' as Key-Value pairs and second one with 'String ID' Vs 
> 'Actual String' as Key-Value pairs.


Do you even need a real parser for this? Parser generators are great, but they 
tend to have enough of a learning curve and runtime overhead that they may be 
overkill for something this simple.

Just use -rangeOfString:options:range: to locate the first two "=" in each 
line, then grab the three substrings that they're separated by. (You could even 
use -componentsSeparatedByString:@"=" if you were 100% sure that the freeform 
text in the third field never contains an "=".)

Or, on 10.7/iOS5, you can use NSRegularExpression.

—Jens

smime.p7s
Description: S/MIME cryptographic signature
___

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


nstableview reload with animation possible?

2012-06-18 Thread Rick C.
Hi,

What I'm basically trying to do is call reloadData but with animation and I 
can't see how to do it?  I know about removing/inserting rows with animation 
and I tried this, but I keep crashing and I would think it's because I'm 
removing rows and inserting rows after my datasource has been modified.  That's 
why normally I use reloadData and it works fine.  Also, it seems there is a 
method to do this in iOS but it's not available on Mac.  So is it possible to 
do this?  Or can I only use the animation when removing inserting rows without 
changing the modifying the datasource?  Thanks,

rc
___

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: resolve alias on ios 4

2012-06-18 Thread Jean-Daniel Dupas

Le 18 juin 2012 à 12:05, Ariel Feinerman a écrit :

> On Fri, Jun 15, 2012 at 9:05 PM, Mike Abdullah 
> wrote:
> 
>> 
>> On 15 Jun 2012, at 03:51, Ariel Feinerman wrote:
>> 
>> 
>> 
>> On Thu, Jun 14, 2012 at 9:21 PM, Mike Abdullah 
>> wrote:
>> 
>>> How are you coming across an alias on iOS 4?
>>> 
>>> 
>> Create on the Mac OS X to use in the  archive or in simulator to test
>> 
>> 
>> OK, but what are you hoping it will resolve to? iOS is a different machine
>> and operating system, so where are you expecting to resolve the alias to?
>> 
>> 
> Because the OS X does not easily allow to create the links in UI then I use
> aliases to make the catalogues to use on the iOS
> 
> for instance
> 
> /version -> /version4
> 

> best regards
> Ariel


Don't use alias. 
Use symlink.
They are far simpler, properly supports relative links, and are implemented in 
the libSystem, so can be used on iOS.

-- Jean-Daniel


___

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: resolve alias on ios 4

2012-06-18 Thread Ariel Feinerman
On Fri, Jun 15, 2012 at 9:05 PM, Mike Abdullah wrote:

>
> On 15 Jun 2012, at 03:51, Ariel Feinerman wrote:
>
>
>
> On Thu, Jun 14, 2012 at 9:21 PM, Mike Abdullah 
> wrote:
>
>> How are you coming across an alias on iOS 4?
>>
>>
> Create on the Mac OS X to use in the  archive or in simulator to test
>
>
> OK, but what are you hoping it will resolve to? iOS is a different machine
> and operating system, so where are you expecting to resolve the alias to?
>
>
Because the OS X does not easily allow to create the links in UI then I use
aliases to make the catalogues to use on the iOS

for instance

/version -> /version4




-- 
best regards
Ariel
___

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: Parser Support

2012-06-18 Thread Thomas Davie

On 18 Jun 2012, at 08:22, Appa Rao Mulpuri wrote:

> Hi List,
> 
> Do we have any parser to parse a file with the following entries?
> 
> ID String ID Actual String
> 1=STRINGLITERAL_ID_1=String 1 some Blah
> 2=STRINGLITERAL_ID_2=String 2
> 3=STRINGLITERAL_ID_3=String 3
> ..
> ..
> 
> Basically I need to construct two dictionaries from that file. One with 'ID' 
> vs 'Actual String' as Key-Value pairs and  second one with 'String ID' Vs 
> 'Actual String' as Key-Value pairs.

Core parse will trivially create one for you:
https://github.com/beelsebob/CoreParse

Bob
___

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


Parser Support

2012-06-18 Thread Appa Rao Mulpuri
Hi List,

Do we have any parser to parse a file with the following entries?

ID String ID Actual String
1=STRINGLITERAL_ID_1=String 1 some Blah
2=STRINGLITERAL_ID_2=String 2
3=STRINGLITERAL_ID_3=String 3
..
..

Basically I need to construct two dictionaries from that file. One with 'ID' vs 
'Actual String' as Key-Value pairs and  second one with 'String ID' Vs 'Actual 
String' as Key-Value pairs.

- Apparao Mulpuri




This email and any attachments are confidential, and may be legally privileged 
and protected by copyright. If you are not the intended recipient dissemination 
or copying of this email is prohibited. If you have received this in error, 
please notify the sender by replying by email and then delete the email 
completely from your system. Any views or opinions are solely those of the 
sender. This communication is not intended to form a binding contract unless 
expressly indicated to the contrary and properly authorised. Any actions taken 
on the basis of this email are at the recipient's own risk.
___

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