Cocoa-dev Digest, Vol 8, Issue 979
Cocoa-dev Digest, Vol 8, Issue 979
- Subject: Cocoa-dev Digest, Vol 8, Issue 979
- From: norbert <email@hidden>
- Date: Wed, 21 Dec 2011 15:11:41 +0100
Send Cocoa-dev mailing list submissions to
email@hidden
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
email@hidden
You can reach the person managing the list at
email@hidden
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 <email@hidden>
Subject: Carousel - like control for Mac OS
To: cocoa-dev Dev <email@hidden>
Message-ID:
<email@hidden>
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 <email@hidden>
Subject: Re: Carousel - like control for Mac OS
To: Nick <email@hidden>
Cc: cocoa-dev Dev <email@hidden>
Message-ID: <email@hidden>
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 (email@hidden)
>
> 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:
>
> This email sent to email@hidden
------------------------------
Message: 3
Date: Tue, 20 Dec 2011 23:26:04 +0100
From: Alexander Reichstadt <email@hidden>
Subject: Account validation in CocoaTouch for the purchased app
To: Cocoa-Dev List <email@hidden>
Message-ID: <email@hidden>
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 +0000
From: Appa Rao Mulpuri <email@hidden>
Subject: Lion: Batch close
To: "email@hidden" <email@hidden>
Message-ID: <CB177372.4C7E%email@hidden>
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 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.
------------------------------
Message: 5
Date: Wed, 21 Dec 2011 09:48:16 +0200
From: Nick <email@hidden>
Subject: Re: Carousel - like control for Mac OS
To: Tom Hohensee <email@hidden>
Cc: cocoa-dev Dev <email@hidden>
Message-ID:
<CAPZGeSE7kABgmJzvn3KB38LrhjMs0_7e=email@hidden>
Content-Type: text/plain; charset=ISO-8859-1
Thanks!
2011/12/20 Tom Hohensee <email@hidden>:
> 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 (email@hidden)
>
> 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:
>
> This email sent to email@hidden
>
>
------------------------------
Message: 6
Date: Wed, 21 Dec 2011 10:09:29 +0200
From: Nick <email@hidden>
Subject: Re: Carousel - like control for Mac OS
To: Tom Hohensee <email@hidden>
Cc: cocoa-dev Dev <email@hidden>
Message-ID:
<email@hidden>
Content-Type: text/plain; charset=ISO-8859-1
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 <email@hidden>:
> 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 (email@hidden)
>
> 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:
>
> This email sent to email@hidden
>
>
------------------------------
Message: 7
Date: Wed, 21 Dec 2011 02:14:51 -0600
From: "Stephen J. Butler" <email@hidden>
Subject: Re: Carousel - like control for Mac OS
To: Nick <email@hidden>
Cc: cocoa-dev Dev <email@hidden>
Message-ID:
<CAD4ANxV0vRtimdDwOwpnn8Nhew0KAxr_Dm-DQntm_5CFT4C=email@hidden>
Content-Type: text/plain; charset=ISO-8859-1
On Tue, Dec 20, 2011 at 3:00 PM, Nick <email@hidden> 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?
------------------------------
Message: 8
Date: Wed, 21 Dec 2011 10:30:08 +0200
From: Nick <email@hidden>
Subject: Re: Carousel - like control for Mac OS
To: "Stephen J. Butler" <email@hidden>
Cc: cocoa-dev Dev <email@hidden>
Message-ID:
<email@hidden>
Content-Type: text/plain; charset=ISO-8859-1
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 <email@hidden>:
> On Tue, Dec 20, 2011 at 3:00 PM, Nick <email@hidden> 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?
------------------------------
Message: 9
Date: Wed, 21 Dec 2011 10:01:31 +0100
From: Vincent Habchi <email@hidden>
Subject: Re: Carousel - like control for Mac OS
To: Nick <email@hidden>
Cc: cocoa-dev Dev <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=windows-1252
> 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
------------------------------
Message: 10
Date: Wed, 21 Dec 2011 11:22:14 +0200
From: Nick <email@hidden>
Subject: Re: Carousel - like control for Mac OS
To: Vincent Habchi <email@hidden>, Tom Hohensee <email@hidden>,
"Stephen J. Butler" <email@hidden>
Cc: cocoa-dev Dev <email@hidden>
Message-ID:
<email@hidden>
Content-Type: text/plain; charset=windows-1252
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 <email@hidden>:
>> 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
------------------------------
Message: 11
Date: Wed, 21 Dec 2011 10:35:59 +0100
From: Eric Matecki <email@hidden>
Subject: Re: Example code eyePhoto-Step8 & IB help needed
To: undisclosed-recipients: ;
Cc: "email@hidden >> Cocoa-Dev List"
<email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
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.
------------------------------
Message: 12
Date: Wed, 21 Dec 2011 11:15:39 +0100
From: Olivier Palliere <email@hidden>
Subject: Re: Carousel - like control for Mac OS
To: Nick <email@hidden>
Cc: Tom Hohensee <email@hidden>, cocoa-dev Dev
<email@hidden>
Message-ID:
<email@hidden>
Content-Type: text/plain; charset=windows-1252
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 <email@hidden>:
>>> 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 (email@hidden)
>
> 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:
>
> This email sent to email@hidden
------------------------------
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins (at) lists.apple.com
http://lists.apple.com/mailman/listinfo/cocoa-dev
End of Cocoa-dev Digest, Vol 8, Issue 979
*****************************************
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden