Re: Carousel - like control for Mac OS

2011-12-21 Thread Nick
Unfortunately, on Mac OS this control does not support click on items
detection, which makes it useless on Macs.

from README.md:
"On Mac OS there is no easy way to detect clicks on carousel items
currently. You cannot just supply an NSButton as or inside your item
view because the transforms applied to the item views mean that hit
detection doesn't work properly. I'm investigating possible solutions
to this (if you know a good way to fix this, please get in touch, or
fork the project on github)."


2011/12/20 Tom Hohensee :
> Have a look at iCarousel.  Has a port for iOS as well as Mac OS.
>
> Tom
>
> On Dec 20, 2011, at 3:00 PM, Nick wrote:
>
> Hello
> I am wondering, if a component exists similar to this
> http://www.ajaxdaddy.com/demo-jquery-carousel.html
> for Mac OS.
>
> Basically, what I need is just "next" and "previous" buttons (and
> these images smoothly scrolled one image per "next" or "prev" button
> click).
>
> At the moment I am trying to implement it on my own.
> This seems to be a simple NSScrollView with hidden scroll bars whose
> inner view has these image views added as subviews.
>
> However, I am not sure how to implement smooth scrolling of one image
> per click. I guess I need to use Core Animation?
> Are there any simple examples that I could look at?
> ___
>
> 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/tomhoh%40mac.com
>
> This email sent to tom...@mac.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: Carousel - like control for Mac OS

2011-12-21 Thread Stephen J. Butler
On Tue, Dec 20, 2011 at 3:00 PM, Nick  wrote:
> Hello
> I am wondering, if a component exists similar to this
> http://www.ajaxdaddy.com/demo-jquery-carousel.html
> for Mac OS.
>
> Basically, what I need is just "next" and "previous" buttons (and
> these images smoothly scrolled one image per "next" or "prev" button
> click).

This is an awful lot like the coverflow animation/display. Are you
sure that coverflow wouldn't be more appropriate for OS X?
___

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: Carousel - like control for Mac OS

2011-12-21 Thread Nick
Coverflow seems to be even more difficult to implement than just a
simple smoothly scrollable strip with clickable items. Coverflow can
be implemented using this iCarousel, but, again, with non-clickable
items.
And then, I do not have much space on the window to put this
coverflow (while a strip can be small and still look good), plus a
strip can display more than 1 item at once, and the user can click on
any of these items without too much of scrolling).

2011/12/21 Stephen J. Butler :
> On Tue, Dec 20, 2011 at 3:00 PM, Nick  wrote:
>> Hello
>> I am wondering, if a component exists similar to this
>> http://www.ajaxdaddy.com/demo-jquery-carousel.html
>> for Mac OS.
>>
>> Basically, what I need is just "next" and "previous" buttons (and
>> these images smoothly scrolled one image per "next" or "prev" button
>> click).
>
> This is an awful lot like the coverflow animation/display. Are you
> sure that coverflow wouldn't be more appropriate for OS X?
___

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: Carousel - like control for Mac OS

2011-12-21 Thread Vincent Habchi
> And then, I do not have much space on the window to put this
> coverflow (while a strip can be small and still look good), plus a
> strip can display more than 1 item at once, and the user can click on
> any of these items without too much of scrolling).

Why don’t you use CALayers (more specifically a CATileLayer and sublayers 
containing your images)?

Vincent___

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: Carousel - like control for Mac OS

2011-12-21 Thread Nick
I am not sure how to do this.
Currently, I have an NSScrollView (whose document view has all the
item views), with hidden scroll bars, and buttons "next" and
"previous". When "next" and "prev"  are clicked, I -scrollToPoint
NSScrollView's content view a bit to the right or to the left.
It seems to be working as I need, except that it doesn't scroll
smoothly (I guess I need to use somehow). I suppose I need to attach a
core animation layer to NSScrollView? Or use somehow CAScrollView?
I've never worked with Core Animation before, except using animator
"proxy", however
myscrollview] contentView] animator] scrollToPoint:nextPoint];
doesn't add any animation..
What would be the quickest way to make it work?

2011/12/21 Vincent Habchi :
>> And then,  I do not have much space on the window to put this
>> coverflow (while a strip can be small and still look good), plus a
>> strip can display more than 1 item at once, and the user can click on
>> any of these items without too much of scrolling).
>
> Why don’t you use CALayers (more specifically a CATileLayer and sublayers 
> containing your images)?
>
> Vincent
___

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: Example code eyePhoto-Step8 & IB help needed

2011-12-21 Thread Eric Matecki

On 20/12/11 17:48, Laurent Daudelin wrote:

On Dec 20, 2011, at 06:03, Eric Matecki wrote:


Hi,

I'm new to IB.

I'm trying to find by which magic "NSWindow * imageCaptureWindow;",
member of "@interface Controller : NSWindowController",
gets initialized by the following code :
[NSBundle loadNibNamed: @"ImageCapture" owner: self];

This variable isn't initialized anywhere in the code, so it must be IB
which does it.  But, contrary to the window's views, it isn't even an IBOutlet.

The only connection/binding/whatever I can see in IB for this window is
the delegate to "point to" the owner, which is the previously mentionned 
Controller.

Also, for the "Device Browser View", where in IB can I find how "mode" is set to 
"IKDeviceBrowserViewDisplayModeTable" ?

I (think I) do understand how bindings works, but not how to retrieve the 
pertinent information in IB...

Any help would be appreciated, IB is so mysterious to me !


Salut Eric.

I'm sure that there are some who will be able to better explain it than myself but, to 
make a long story short, when you call loadNIbNamed:, the method will connect all the 
instance variables of the "owner" that you have declared to be IB outlets with 
the UI objects that you did create in IB, after they are instantiated. How does the 
method do that? If they are no setter for a particular ivar, it will just set the ivar 
directly. This is also probably explained in the documentation.

HTH!

-Laurent.


Salut Laurent,

that's what I did understand, but...

Somewhere in IB I should find the name of that instance variable 
("imageCaptureWindow"),
so loadNibNamed: knows *which* variable to assign to, which I don't find.
To establish myself a connection, the instance variable has to have the 
IBOutlet attribute,
which "imageCaptureWindow" lacks.

Let's look at the scannerView. The ivar is declared as "IBOutlet IKScannerDeviceView 
* scannerView",
and in IB I can see a connection in "Referencing Outlets", that's called "scannerView", 
of/to the "File's Owner".
That's clear to me.
I expect to find something similar for the window, but I don't...

Yet it works... but I can't figure out how.

Thanks.

--
Keep intel OUTSIDE my Mac !
Hiii !!! I can see Intel chips creeping around my G5 !

Eric M.
___

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: Carousel - like control for Mac OS

2011-12-21 Thread Olivier Palliere
HI Nick,

In my app, I have two IKImageBrowserView subclasses (thumbnailsBrowser) that I 
populate with the pictures I need. It supports scrolling out of the box with 
the mouse or trackpad when needed. For one of my subclass, I resize the popover 
because it can only have up to 5 pictures in it, so I in fact disable 
scrolling. The other one however, can have up to 50 images, so to also allow 
scrolling with clicking a button, I wired two NSButton to this method:


- (IBAction)coverBrowserGo:(id)sender
{

NSIndexSet *currentlyVisible = [thumbnailsBrowser visibleItemIndexes];

if(debugging)
NSLog(@"current IndexSet: %@", currentlyVisible);


if ([sender tag] == 0) //Go Left
{
// Are we already showing the first item?
if ([currentlyVisible firstIndex]==0)
return;

[thumbnailsBrowser scrollIndexToVisible:[currentlyVisible firstIndex] 
-1];

}
else //Go Right
{
if(debugging)
{
NSLog(@"resultMatchArray: %lu", [resultMatchArray count]);
NSLog(@"lastIndex: %lu", [currentlyVisible lastIndex]);
}

// Are we already showing the last item?
if ([currentlyVisible lastIndex]+1==[resultMatchArray count])
return;

[thumbnailsBrowser scrollIndexToVisible:[currentlyVisible lastIndex] 
+1];

}
}

To support clicking on an image, I have two choices. In one case I add the 
IKImageBrowserController delegate method, where I can then get the index of the 
currently selected index for aBrowser:

- (void) imageBrowserSelectionDidChange:(IKImageBrowserView *)aBrowser;

In the other case, I subclass the mouseUp method in my IKImageBrowserView 
subclass, then pass data back to the delegate:

- (void) mouseUp:(NSEvent*)inEvent
{

id delegate = self.delegate;
if (delegate)
{
NSPoint mouse = [self convertPoint:[inEvent locationInWindow] 
fromView:nil];
NSInteger objectIndex = [self indexOfItemAtPoint: mouse];

if (objectIndex == NSNotFound)
[delegate toggleCoverFloatingWindow:nil];
else
[delegate displayCoverFloatingWindow: objectIndex];

}

[super mouseUp:inEvent];

}

Hope that helps,
Olivier./.
Molowa.

On Dec 21, 2011, at 10:22 AM, Nick wrote:

> I am not sure how to do this.
> Currently, I have an NSScrollView (whose document view has all the
> item views), with hidden scroll bars, and buttons "next" and
> "previous". When "next" and "prev"  are clicked, I -scrollToPoint
> NSScrollView's content view a bit to the right or to the left.
> It seems to be working as I need, except that it doesn't scroll
> smoothly (I guess I need to use somehow). I suppose I need to attach a
> core animation layer to NSScrollView? Or use somehow CAScrollView?
> I've never worked with Core Animation before, except using animator
> "proxy", however
> myscrollview] contentView] animator] scrollToPoint:nextPoint];
> doesn't add any animation..
> What would be the quickest way to make it work?
> 
> 2011/12/21 Vincent Habchi :
>>> And then,  I do not have much space on the window to put this
>>> coverflow (while a strip can be small and still look good), plus a
>>> strip can display more than 1 item at once, and the user can click on
>>> any of these items without too much of scrolling).
>> 
>> Why don’t you use CALayers (more specifically a CATileLayer and sublayers 
>> containing your images)?
>> 
>> Vincent
> ___
> 
> 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/olivier%40sunprotectingfactory.com
> 
> This email sent to oliv...@sunprotectingfactory.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: Lion: Batch close

2011-12-21 Thread Mike Abdullah
You've given us almost nothing to go on. Can we have a crash report please? 
Have you tried using Instruments to look for zombies? Indeed, have you tried 
anything at all?

On 21 Dec 2011, at 06:00, Appa Rao Mulpuri wrote:

> Hi,
> 
> My application is crashing on Lion if user tries to close all open windows 
> using Option key + Mouse click. Same is working in Leopard and Snow leopard. 
> Is anything is changed related to Batch Close in Lion? Any work around for  
> this?
> 
> - Apparao
> 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.
> 
> 
> This email is sent for and on behalf of Ivy Comptech Private Limited. Ivy 
> Comptech Private Limited is a limited liability company.
> 
> 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 on behalf of Ivy Comptech Private 
> Limited 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.
> 
> Registered office:
> Ivy Comptech Private Limited, Cyber Spazio, Road No. 2, Banjara Hills, 
> Hyderabad 500 033, Andhra Pradesh, India. Registered number: 37994. 
> Registered in India. A list of members' names is available for inspection at 
> the registered office.
> 
> ___
> 
> 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


Re: Carousel - like control for Mac OS

2011-12-21 Thread vincent habchi
Nick,

I cannot elaborate much on this and give you code (not because it is somehow 
confidential, but just because it is a general idea I don’t have implemented, 
though I’m familiar with CAScrollLayers). The idea is thus:

1. Draw a normal NSView that you back with a CAScrollLayer. Give it the right 
size.
2. Generate a NSArray of CALayers, each one initialized with a single image.
3. Put as sublayers of your CAScrollLayer as many CALayers as you want images 
displayed, giving each CALayer origin the right position (ex: (0,0) - (0, 100) 
- (0, 200) if you display three images of 100x100 pixels each). Your 
CAScrollLayer should have its origin at (0, 0).
4. Use standard event handling methods to detect mouse click.
5. If you want to scroll, say leftwards, add a new sublayer with the proper 
image at (0, 300), then animate the origin of the CAScrollLayer from (0,0) to 
(0, 100). Once the animation is done, you can safely remove the (0, 0) sublayer.
6. Go back to 4.

The NSArray is a sort of cache where the CALayer live. This is more efficient 
than generating a CALayer on the fly each time you scroll.

Vincent___

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


Cocoa-dev Digest, Vol 8, Issue 979

2011-12-21 Thread norbert
Send Cocoa-dev mailing list submissions to
cocoa-dev@lists.apple.com

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.apple.com/mailman/listinfo/cocoa-dev
or, via email, send a message with subject or body 'help' to
cocoa-dev-requ...@lists.apple.com

You can reach the person managing the list at
cocoa-dev-ow...@lists.apple.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Cocoa-dev digest..."


Today's Topics:

  1. Carousel - like control for Mac OS (Nick)
  2. Re: Carousel - like control for Mac OS (Tom Hohensee)
  3. Account validation in CocoaTouch for the purchased app
 (Alexander Reichstadt)
  4. Lion: Batch close (Appa Rao Mulpuri)
  5. Re: Carousel - like control for Mac OS (Nick)
  6. Re: Carousel - like control for Mac OS (Nick)
  7. Re: Carousel - like control for Mac OS (Stephen J. Butler)
  8. Re: Carousel - like control for Mac OS (Nick)
  9. Re: Carousel - like control for Mac OS (Vincent Habchi)
 10. Re: Carousel - like control for Mac OS (Nick)
 11. Re: Example code eyePhoto-Step8 & IB help needed (Eric Matecki)
 12. Re: Carousel - like control for Mac OS (Olivier Palliere)


--

Message: 1
Date: Tue, 20 Dec 2011 23:00:23 +0200
From: Nick 
Subject: Carousel - like control for Mac OS
To: cocoa-dev Dev 
Message-ID:

Content-Type: text/plain; charset=ISO-8859-1

Hello
I am wondering, if a component exists similar to this
http://www.ajaxdaddy.com/demo-jquery-carousel.html
for Mac OS.

Basically, what I need is just "next" and "previous" buttons (and
these images smoothly scrolled one image per "next" or "prev" button
click).

At the moment I am trying to implement it on my own.
This seems to be a simple NSScrollView with hidden scroll bars whose
inner view has these image views added as subviews.

However, I am not sure how to implement smooth scrolling of one image
per click. I guess I need to use Core Animation?
Are there any simple examples that I could look at?


--

Message: 2
Date: Tue, 20 Dec 2011 15:13:40 -0600
From: Tom Hohensee 
Subject: Re: Carousel - like control for Mac OS
To: Nick 
Cc: cocoa-dev Dev 
Message-ID: <3fa582d3-ff4c-4490-8b20-85de59168...@gmail.com>
Content-Type: text/plain;   charset=us-ascii

Have a look at iCarousel.  Has a port for iOS as well as Mac OS.  
This can be done with ImageKit in IB as well.  Just disable the scroll view and 
setup forward and back buttons that call the image index (nextIndex, etc). See 
imageKit docs.

Tom


On Dec 20, 2011, at 3:00 PM, Nick wrote:

> Hello
> I am wondering, if a component exists similar to this
> http://www.ajaxdaddy.com/demo-jquery-carousel.html
> for Mac OS.
> 
> Basically, what I need is just "next" and "previous" buttons (and
> these images smoothly scrolled one image per "next" or "prev" button
> click).
> 
> At the moment I am trying to implement it on my own.
> This seems to be a simple NSScrollView with hidden scroll bars whose
> inner view has these image views added as subviews.
> 
> However, I am not sure how to implement smooth scrolling of one image
> per click. I guess I need to use Core Animation?
> Are there any simple examples that I could look at?
> ___
> 
> 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/tom.hohensee%40gmail.com
> 
> This email sent to tom.hohen...@gmail.com



--

Message: 3
Date: Tue, 20 Dec 2011 23:26:04 +0100
From: Alexander Reichstadt 
Subject: Account validation in CocoaTouch for the purchased app
To: Cocoa-Dev List 
Message-ID: 
Content-Type: text/plain; CHARSET=US-ASCII

Hi,

given an app is sold on iTunes, is there a way for that app to find out which 
email address was used for the iTunes account when it was purchased?

Thanks
Alex



--

Message: 4
Date: Wed, 21 Dec 2011 06:00:28 +
From: Appa Rao Mulpuri 
Subject: Lion: Batch close
To: "cocoa-dev@lists.apple.com" 
Message-ID: 
Content-Type: text/plain; charset="us-ascii"

Hi,

My application is crashing on Lion if user tries to close all open windows 
using Option key + Mouse click. Same is working in Leopard and Snow leopard. Is 
anything is changed related to Batch Close in Lion? Any work around for  this?

- Apparao
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 

Cocoa-dev Digest, Vol 8, Issue 979

2011-12-21 Thread norbert
Send Cocoa-dev mailing list submissions to
cocoa-dev@lists.apple.com

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.apple.com/mailman/listinfo/cocoa-dev
or, via email, send a message with subject or body 'help' to
cocoa-dev-requ...@lists.apple.com

You can reach the person managing the list at
cocoa-dev-ow...@lists.apple.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Cocoa-dev digest..."


Today's Topics:

  1. Carousel - like control for Mac OS (Nick)
  2. Re: Carousel - like control for Mac OS (Tom Hohensee)
  3. Account validation in CocoaTouch for the purchased app
 (Alexander Reichstadt)
  4. Lion: Batch close (Appa Rao Mulpuri)
  5. Re: Carousel - like control for Mac OS (Nick)
  6. Re: Carousel - like control for Mac OS (Nick)
  7. Re: Carousel - like control for Mac OS (Stephen J. Butler)
  8. Re: Carousel - like control for Mac OS (Nick)
  9. Re: Carousel - like control for Mac OS (Vincent Habchi)
 10. Re: Carousel - like control for Mac OS (Nick)
 11. Re: Example code eyePhoto-Step8 & IB help needed (Eric Matecki)
 12. Re: Carousel - like control for Mac OS (Olivier Palliere)


--

Message: 1
Date: Tue, 20 Dec 2011 23:00:23 +0200
From: Nick 
Subject: Carousel - like control for Mac OS
To: cocoa-dev Dev 
Message-ID:

Content-Type: text/plain; charset=ISO-8859-1

Hello
I am wondering, if a component exists similar to this
http://www.ajaxdaddy.com/demo-jquery-carousel.html
for Mac OS.

Basically, what I need is just "next" and "previous" buttons (and
these images smoothly scrolled one image per "next" or "prev" button
click).

At the moment I am trying to implement it on my own.
This seems to be a simple NSScrollView with hidden scroll bars whose
inner view has these image views added as subviews.

However, I am not sure how to implement smooth scrolling of one image
per click. I guess I need to use Core Animation?
Are there any simple examples that I could look at?


--

Message: 2
Date: Tue, 20 Dec 2011 15:13:40 -0600
From: Tom Hohensee 
Subject: Re: Carousel - like control for Mac OS
To: Nick 
Cc: cocoa-dev Dev 
Message-ID: <3fa582d3-ff4c-4490-8b20-85de59168...@gmail.com>
Content-Type: text/plain;   charset=us-ascii

Have a look at iCarousel.  Has a port for iOS as well as Mac OS.  
This can be done with ImageKit in IB as well.  Just disable the scroll view and 
setup forward and back buttons that call the image index (nextIndex, etc). See 
imageKit docs.

Tom


On Dec 20, 2011, at 3:00 PM, Nick wrote:

> Hello
> I am wondering, if a component exists similar to this
> http://www.ajaxdaddy.com/demo-jquery-carousel.html
> for Mac OS.
> 
> Basically, what I need is just "next" and "previous" buttons (and
> these images smoothly scrolled one image per "next" or "prev" button
> click).
> 
> At the moment I am trying to implement it on my own.
> This seems to be a simple NSScrollView with hidden scroll bars whose
> inner view has these image views added as subviews.
> 
> However, I am not sure how to implement smooth scrolling of one image
> per click. I guess I need to use Core Animation?
> Are there any simple examples that I could look at?
> ___
> 
> 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/tom.hohensee%40gmail.com
> 
> This email sent to tom.hohen...@gmail.com



--

Message: 3
Date: Tue, 20 Dec 2011 23:26:04 +0100
From: Alexander Reichstadt 
Subject: Account validation in CocoaTouch for the purchased app
To: Cocoa-Dev List 
Message-ID: 
Content-Type: text/plain; CHARSET=US-ASCII

Hi,

given an app is sold on iTunes, is there a way for that app to find out which 
email address was used for the iTunes account when it was purchased?

Thanks
Alex



--

Message: 4
Date: Wed, 21 Dec 2011 06:00:28 +
From: Appa Rao Mulpuri 
Subject: Lion: Batch close
To: "cocoa-dev@lists.apple.com" 
Message-ID: 
Content-Type: text/plain; charset="us-ascii"

Hi,

My application is crashing on Lion if user tries to close all open windows 
using Option key + Mouse click. Same is working in Leopard and Snow leopard. Is 
anything is changed related to Batch Close in Lion? Any work around for  this?

- Apparao
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 

Cocoa-dev Digest, Vol 8, Issue 979

2011-12-21 Thread norbert
Send Cocoa-dev mailing list submissions to
cocoa-dev@lists.apple.com

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.apple.com/mailman/listinfo/cocoa-dev
or, via email, send a message with subject or body 'help' to
cocoa-dev-requ...@lists.apple.com

You can reach the person managing the list at
cocoa-dev-ow...@lists.apple.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Cocoa-dev digest..."


Today's Topics:

  1. Carousel - like control for Mac OS (Nick)
  2. Re: Carousel - like control for Mac OS (Tom Hohensee)
  3. Account validation in CocoaTouch for the purchased app
 (Alexander Reichstadt)
  4. Lion: Batch close (Appa Rao Mulpuri)
  5. Re: Carousel - like control for Mac OS (Nick)
  6. Re: Carousel - like control for Mac OS (Nick)
  7. Re: Carousel - like control for Mac OS (Stephen J. Butler)
  8. Re: Carousel - like control for Mac OS (Nick)
  9. Re: Carousel - like control for Mac OS (Vincent Habchi)
 10. Re: Carousel - like control for Mac OS (Nick)
 11. Re: Example code eyePhoto-Step8 & IB help needed (Eric Matecki)
 12. Re: Carousel - like control for Mac OS (Olivier Palliere)


--

Message: 1
Date: Tue, 20 Dec 2011 23:00:23 +0200
From: Nick 
Subject: Carousel - like control for Mac OS
To: cocoa-dev Dev 
Message-ID:

Content-Type: text/plain; charset=ISO-8859-1

Hello
I am wondering, if a component exists similar to this
http://www.ajaxdaddy.com/demo-jquery-carousel.html
for Mac OS.

Basically, what I need is just "next" and "previous" buttons (and
these images smoothly scrolled one image per "next" or "prev" button
click).

At the moment I am trying to implement it on my own.
This seems to be a simple NSScrollView with hidden scroll bars whose
inner view has these image views added as subviews.

However, I am not sure how to implement smooth scrolling of one image
per click. I guess I need to use Core Animation?
Are there any simple examples that I could look at?


--

Message: 2
Date: Tue, 20 Dec 2011 15:13:40 -0600
From: Tom Hohensee 
Subject: Re: Carousel - like control for Mac OS
To: Nick 
Cc: cocoa-dev Dev 
Message-ID: <3fa582d3-ff4c-4490-8b20-85de59168...@gmail.com>
Content-Type: text/plain;   charset=us-ascii

Have a look at iCarousel.  Has a port for iOS as well as Mac OS.  
This can be done with ImageKit in IB as well.  Just disable the scroll view and 
setup forward and back buttons that call the image index (nextIndex, etc). See 
imageKit docs.

Tom


On Dec 20, 2011, at 3:00 PM, Nick wrote:

> Hello
> I am wondering, if a component exists similar to this
> http://www.ajaxdaddy.com/demo-jquery-carousel.html
> for Mac OS.
> 
> Basically, what I need is just "next" and "previous" buttons (and
> these images smoothly scrolled one image per "next" or "prev" button
> click).
> 
> At the moment I am trying to implement it on my own.
> This seems to be a simple NSScrollView with hidden scroll bars whose
> inner view has these image views added as subviews.
> 
> However, I am not sure how to implement smooth scrolling of one image
> per click. I guess I need to use Core Animation?
> Are there any simple examples that I could look at?
> ___
> 
> 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/tom.hohensee%40gmail.com
> 
> This email sent to tom.hohen...@gmail.com



--

Message: 3
Date: Tue, 20 Dec 2011 23:26:04 +0100
From: Alexander Reichstadt 
Subject: Account validation in CocoaTouch for the purchased app
To: Cocoa-Dev List 
Message-ID: 
Content-Type: text/plain; CHARSET=US-ASCII

Hi,

given an app is sold on iTunes, is there a way for that app to find out which 
email address was used for the iTunes account when it was purchased?

Thanks
Alex



--

Message: 4
Date: Wed, 21 Dec 2011 06:00:28 +
From: Appa Rao Mulpuri 
Subject: Lion: Batch close
To: "cocoa-dev@lists.apple.com" 
Message-ID: 
Content-Type: text/plain; charset="us-ascii"

Hi,

My application is crashing on Lion if user tries to close all open windows 
using Option key + Mouse click. Same is working in Leopard and Snow leopard. Is 
anything is changed related to Batch Close in Lion? Any work around for  this?

- Apparao
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 

Cocoa-dev Digest, Vol 8, Issue 979

2011-12-21 Thread norbert
Send Cocoa-dev mailing list submissions to
cocoa-dev@lists.apple.com

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.apple.com/mailman/listinfo/cocoa-dev
or, via email, send a message with subject or body 'help' to
cocoa-dev-requ...@lists.apple.com

You can reach the person managing the list at
cocoa-dev-ow...@lists.apple.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Cocoa-dev digest..."


Today's Topics:

  1. Carousel - like control for Mac OS (Nick)
  2. Re: Carousel - like control for Mac OS (Tom Hohensee)
  3. Account validation in CocoaTouch for the purchased app
 (Alexander Reichstadt)
  4. Lion: Batch close (Appa Rao Mulpuri)
  5. Re: Carousel - like control for Mac OS (Nick)
  6. Re: Carousel - like control for Mac OS (Nick)
  7. Re: Carousel - like control for Mac OS (Stephen J. Butler)
  8. Re: Carousel - like control for Mac OS (Nick)
  9. Re: Carousel - like control for Mac OS (Vincent Habchi)
 10. Re: Carousel - like control for Mac OS (Nick)
 11. Re: Example code eyePhoto-Step8 & IB help needed (Eric Matecki)
 12. Re: Carousel - like control for Mac OS (Olivier Palliere)


--

Message: 1
Date: Tue, 20 Dec 2011 23:00:23 +0200
From: Nick 
Subject: Carousel - like control for Mac OS
To: cocoa-dev Dev 
Message-ID:

Content-Type: text/plain; charset=ISO-8859-1

Hello
I am wondering, if a component exists similar to this
http://www.ajaxdaddy.com/demo-jquery-carousel.html
for Mac OS.

Basically, what I need is just "next" and "previous" buttons (and
these images smoothly scrolled one image per "next" or "prev" button
click).

At the moment I am trying to implement it on my own.
This seems to be a simple NSScrollView with hidden scroll bars whose
inner view has these image views added as subviews.

However, I am not sure how to implement smooth scrolling of one image
per click. I guess I need to use Core Animation?
Are there any simple examples that I could look at?


--

Message: 2
Date: Tue, 20 Dec 2011 15:13:40 -0600
From: Tom Hohensee 
Subject: Re: Carousel - like control for Mac OS
To: Nick 
Cc: cocoa-dev Dev 
Message-ID: <3fa582d3-ff4c-4490-8b20-85de59168...@gmail.com>
Content-Type: text/plain;   charset=us-ascii

Have a look at iCarousel.  Has a port for iOS as well as Mac OS.  
This can be done with ImageKit in IB as well.  Just disable the scroll view and 
setup forward and back buttons that call the image index (nextIndex, etc). See 
imageKit docs.

Tom


On Dec 20, 2011, at 3:00 PM, Nick wrote:

> Hello
> I am wondering, if a component exists similar to this
> http://www.ajaxdaddy.com/demo-jquery-carousel.html
> for Mac OS.
> 
> Basically, what I need is just "next" and "previous" buttons (and
> these images smoothly scrolled one image per "next" or "prev" button
> click).
> 
> At the moment I am trying to implement it on my own.
> This seems to be a simple NSScrollView with hidden scroll bars whose
> inner view has these image views added as subviews.
> 
> However, I am not sure how to implement smooth scrolling of one image
> per click. I guess I need to use Core Animation?
> Are there any simple examples that I could look at?
> ___
> 
> 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/tom.hohensee%40gmail.com
> 
> This email sent to tom.hohen...@gmail.com



--

Message: 3
Date: Tue, 20 Dec 2011 23:26:04 +0100
From: Alexander Reichstadt 
Subject: Account validation in CocoaTouch for the purchased app
To: Cocoa-Dev List 
Message-ID: 
Content-Type: text/plain; CHARSET=US-ASCII

Hi,

given an app is sold on iTunes, is there a way for that app to find out which 
email address was used for the iTunes account when it was purchased?

Thanks
Alex



--

Message: 4
Date: Wed, 21 Dec 2011 06:00:28 +
From: Appa Rao Mulpuri 
Subject: Lion: Batch close
To: "cocoa-dev@lists.apple.com" 
Message-ID: 
Content-Type: text/plain; charset="us-ascii"

Hi,

My application is crashing on Lion if user tries to close all open windows 
using Option key + Mouse click. Same is working in Leopard and Snow leopard. Is 
anything is changed related to Batch Close in Lion? Any work around for  this?

- Apparao
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 

Cocoa-dev Digest, Vol 8, Issue 979

2011-12-21 Thread norbert
Send Cocoa-dev mailing list submissions to
cocoa-dev@lists.apple.com

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.apple.com/mailman/listinfo/cocoa-dev
or, via email, send a message with subject or body 'help' to
cocoa-dev-requ...@lists.apple.com

You can reach the person managing the list at
cocoa-dev-ow...@lists.apple.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Cocoa-dev digest..."


Today's Topics:

  1. Carousel - like control for Mac OS (Nick)
  2. Re: Carousel - like control for Mac OS (Tom Hohensee)
  3. Account validation in CocoaTouch for the purchased app
 (Alexander Reichstadt)
  4. Lion: Batch close (Appa Rao Mulpuri)
  5. Re: Carousel - like control for Mac OS (Nick)
  6. Re: Carousel - like control for Mac OS (Nick)
  7. Re: Carousel - like control for Mac OS (Stephen J. Butler)
  8. Re: Carousel - like control for Mac OS (Nick)
  9. Re: Carousel - like control for Mac OS (Vincent Habchi)
 10. Re: Carousel - like control for Mac OS (Nick)
 11. Re: Example code eyePhoto-Step8 & IB help needed (Eric Matecki)
 12. Re: Carousel - like control for Mac OS (Olivier Palliere)


--

Message: 1
Date: Tue, 20 Dec 2011 23:00:23 +0200
From: Nick 
Subject: Carousel - like control for Mac OS
To: cocoa-dev Dev 
Message-ID:

Content-Type: text/plain; charset=ISO-8859-1

Hello
I am wondering, if a component exists similar to this
http://www.ajaxdaddy.com/demo-jquery-carousel.html
for Mac OS.

Basically, what I need is just "next" and "previous" buttons (and
these images smoothly scrolled one image per "next" or "prev" button
click).

At the moment I am trying to implement it on my own.
This seems to be a simple NSScrollView with hidden scroll bars whose
inner view has these image views added as subviews.

However, I am not sure how to implement smooth scrolling of one image
per click. I guess I need to use Core Animation?
Are there any simple examples that I could look at?


--

Message: 2
Date: Tue, 20 Dec 2011 15:13:40 -0600
From: Tom Hohensee 
Subject: Re: Carousel - like control for Mac OS
To: Nick 
Cc: cocoa-dev Dev 
Message-ID: <3fa582d3-ff4c-4490-8b20-85de59168...@gmail.com>
Content-Type: text/plain;   charset=us-ascii

Have a look at iCarousel.  Has a port for iOS as well as Mac OS.  
This can be done with ImageKit in IB as well.  Just disable the scroll view and 
setup forward and back buttons that call the image index (nextIndex, etc). See 
imageKit docs.

Tom


On Dec 20, 2011, at 3:00 PM, Nick wrote:

> Hello
> I am wondering, if a component exists similar to this
> http://www.ajaxdaddy.com/demo-jquery-carousel.html
> for Mac OS.
> 
> Basically, what I need is just "next" and "previous" buttons (and
> these images smoothly scrolled one image per "next" or "prev" button
> click).
> 
> At the moment I am trying to implement it on my own.
> This seems to be a simple NSScrollView with hidden scroll bars whose
> inner view has these image views added as subviews.
> 
> However, I am not sure how to implement smooth scrolling of one image
> per click. I guess I need to use Core Animation?
> Are there any simple examples that I could look at?
> ___
> 
> 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/tom.hohensee%40gmail.com
> 
> This email sent to tom.hohen...@gmail.com



--

Message: 3
Date: Tue, 20 Dec 2011 23:26:04 +0100
From: Alexander Reichstadt 
Subject: Account validation in CocoaTouch for the purchased app
To: Cocoa-Dev List 
Message-ID: 
Content-Type: text/plain; CHARSET=US-ASCII

Hi,

given an app is sold on iTunes, is there a way for that app to find out which 
email address was used for the iTunes account when it was purchased?

Thanks
Alex



--

Message: 4
Date: Wed, 21 Dec 2011 06:00:28 +
From: Appa Rao Mulpuri 
Subject: Lion: Batch close
To: "cocoa-dev@lists.apple.com" 
Message-ID: 
Content-Type: text/plain; charset="us-ascii"

Hi,

My application is crashing on Lion if user tries to close all open windows 
using Option key + Mouse click. Same is working in Leopard and Snow leopard. Is 
anything is changed related to Batch Close in Lion? Any work around for  this?

- Apparao
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 

Q: An App for both OS X and iOS

2011-12-21 Thread Peter Teeson
Using Xcode 4.2.1 on Lion 10.7.2. Xcode 4 is new to me for real work. 
I've just been doing reading and tutorials. (So far I like what I see very much)

I want to start a new workspace for an app that will be for both Mac OS X and 
iOS.
This will be my first iOS app. 

The model part of MVC is going to be common but obviously the UIs are different.

Am I correct in this plan outline:
(1) Create MacOS X project for it's UI
(2) Create iOS project for it's UI
(3) Create project for common model code

Appropriate schemes at the project and workspace levels.
Appropriate targets at the project levels.




___

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: Q: An App for both OS X and iOS

2011-12-21 Thread Chris Hanson
On Dec 21, 2011, at 7:50 AM, Peter Teeson wrote:

> I want to start a new workspace for an app that will be for both Mac OS X and 
> iOS.
> This will be my first iOS app. 
> 
> The model part of MVC is going to be common but obviously the UIs are 
> different.
> 
> Am I correct in this plan outline:
> (1) Create MacOS X project for it's UI
> (2) Create iOS project for it's UI
> (3) Create project for common model code
> 
> Appropriate schemes at the project and workspace levels.
> Appropriate targets at the project levels.

Yes, that's the intended way to set up a workspace for iOS and OS X projects 
that share common code.  The common-model-code project will have to produce a 
static library for iOS, since dynamic libraries and frameworks aren't supported.

If your common-model-code project also has other resources, such as a Core Data 
data model and localizable strings file(s), it should put them in its 
BUILT_PRODUCTS_DIR (or a subfolder) and your OS X and iOS projects should copy 
them out of that and into their own resources.

  -- Chris

___

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: Cocoa-dev Digest, Vol 8, Issue 979

2011-12-21 Thread Graham Cox
You know, it's really dumb to post a reply to the entire digest. Not only can't 
we tell what you are responding to, but we can't even find the bit you added.

--Graham


On 22/12/2011, at 1:11 AM, norbert wrote:

> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Cocoa-dev digest..."

___

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


NSString looses Umlaute

2011-12-21 Thread Alexander Reichstadt
Hi,

NSString eats the Umlaute. How do I tell NSString to not do that? I tried:

NSString *theContent = [[NSString alloc] initWithData:theData 
encoding:NSASCIIStringEncoding];
theContent = [[theContent componentsSeparatedByString:@"\r"] 
objectAtIndex:1]; 
theContent = [theContent 
stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
theContent = [theContent 
stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];

  

I can even see it handles everything correctly in NSLog, first I see the 
unicode for an Umlaut, then it converts it to the correct percent value, like 
like ö to 94, but when the final NSString is printed to an NSControl, the 
Umlaute are missing or garbled.

The original file is ascii-encoded.

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

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


Re: NSString looses Umlaute

2011-12-21 Thread Ben Kennedy
On 21 Dec 2011, at 4:45 pm, Alexander Reichstadt wrote:

>   NSString *theContent = [[NSString alloc] initWithData:theData 
> encoding:NSASCIIStringEncoding];
>theContent = [[theContent componentsSeparatedByString:@"\r"] 
> objectAtIndex:1]; 
>theContent = [theContent 
> stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
>theContent = [theContent 
> stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];

Is this really your code?  What is the purpose of the latter two lines?  They 
are completely reciprocal (i.e. redundant).

> I can even see it handles everything correctly in NSLog, first I see the 
> unicode for an Umlaut, then it converts it to the correct percent value, like 
> like ö to 94, but when the final NSString is printed to an NSControl, the 
> Umlaute are missing or garbled.
> 
> The original file is ascii-encoded.

Impossible.  ASCII does not represent any characters with diacritical marks.  
Perhaps the original file is ISO-Latin-1 encoded.  You could try using 
NSISOLatin1StringEncoding.

b

--
Ben Kennedy, chief magician
Zygoat Creative Technical Services
http://www.zygoat.ca

___

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: CoreData and 3 level Master/Detail tableView

2011-12-21 Thread Jerry Krinock

On 2011 Dec 20, at 09:57, gumbo...@mac.com wrote:

> How do I display the EventScores for selected Entry in the second column?

I think maybe you need another array controller or two.  Generally, one array 
controller for each table.

In the detail array controller, bind the "Content" to the master array 
controller, with Controller Key = 'selection' and Model Key path = 'foo2'.

In a typical detail table…

For the first column, bind the "Content" to masterArrayController with 
Controller Key = 'selection' and Model Key path = 'foo2'.

For other columns, bind the "Value" to the detailArrayController with 
Controller Key = 'arrangedObject' and Model Key path = 'foo3'.

Might not fit your case exactly, but that's what I see in one of my projects 
that works.

___

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: Why would a working -[NSInvocation invoke] call NSBeep() ?

2011-12-21 Thread Jerry Krinock

On 2011 Dec 05, at 13:14, Greg Parker wrote:

> You should file a bug report asking for -beginSheet:... to log a real error 
> message or throw an exception instead of beeping.

Done (a few weeks ago, forgot to send this).  Problem ID is 10557689.

___

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


Get property values of a UI element in an Cross-possess manner without Accessibility APIs ?

2011-12-21 Thread 王珺翔
Hi,

I've post this question to the accessibility-dev mail list and they
suggested I move step here to seek some definite answers. The question is:

I have a cocoa application running and there is a NSButton on it. From
another process, I can get properties like "position", "title" via Mac
Accessibility. However, other properties like "button style", "font" cannot
be retrieved in that way. So, Is there any cocoa functions or  MacOS APIs
that can retrieve properties of a UI element, in an cross-process way ?

Thanks in advance!

-- 
Best Wishes ’~`
Junxiang Wang
___

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


iOS generate key event

2011-12-21 Thread Yumi Kimura
Is there any way to generate key event on iOS programmatically?
OS X has CGEvents class but iOS has similar one?

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/archive%40mail-archive.com

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


Re: Account validation in CocoaTouch for the purchased app

2011-12-21 Thread Steve Christensen
On Dec 20, 2011, at 2:26 PM, Alexander Reichstadt wrote:

> given an app is sold on iTunes, is there a way for that app to find out which 
> email address was used for the iTunes account when it was purchased?

I don't believe so. As far as I know, the only way to find that out is to ask 
the user.

___

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: Get property values of a UI element in an Cross-possess manner without Accessibility APIs ?

2011-12-21 Thread Kyle Sluder
On Dec 19, 2011, at 9:10 PM, 王珺翔  wrote:

> I have a cocoa application running and there is a NSButton on it. From
> another process, I can get properties like "position", "title" via Mac
> Accessibility. However, other properties like "button style", "font" cannot
> be retrieved in that way. So, Is there any cocoa functions or  MacOS APIs
> that can retrieve properties of a UI element, in an cross-process way ?

If I'm correct in assuming you want to ask about the button style and font of 
individual controls in another app, rather than (say) asking Interface Builder 
what font and button style have been assigned to an object on a canvas, then 
no, there is no way to do this because as far as the system is concerned these 
are nonsensical questions to ask.

An app's windows are a black box as far as the system is concerned—the app 
draws whatever content it wants into the window's backing store, and receives 
mouse and keyboard events in the window. The concept of views exists entirely 
within the Cocoa framework. Things like "button style" and "font" only make 
sense when configuring NSViews, and Cocoa takes care of dispatching mouse and 
keyboard events to the appropriate NSResponder.

Because these are visual APIs rather than semantic information, they are not 
exposed via the accessibility API. So there is no way to accomplish what you're 
after.

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

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