On Feb 2, 2011, at 2:42, JD Guzman wrote:
> Hello,
>
> I'm new to this list and also relatively new to development on the Mac/iPhone
> platforms.
Welcome!
> I was just wondering if someone could clarify how exactly
> dequeueReusableCellWithIdentifier: works. The reason I ask is because I hav
Welcome to the list and the platform, JD. The purpose of the cell reuse queue
is so that we don't have to keep creating new cell objects as we scroll a
table. We take advantage of the fact that as new cells are appearing, old cells
are disappearing. Rather than throw the old cells away and creat
On 2011 Feb 02, at 12:51, Quincey Morris wrote:
> I don't believe there's any real difficulty about writing the accessors as
> such.
Agreed; I've added such "value accessors" with no trouble.
> If you make *only* a getter for the "...Num" version, then I think it's easy
> -- you just make it
Hi there!
I am planning to implement a component similar to the iphone's photo album.. I
guess that using uviews will make the component to have a bad performace , I
mean scrolling slow and all of the stuff ... so which way should I take? Is
CALayer better than UIViews in terms of performance?
Hello,
I'm new to this list and also relatively new to development on the Mac/iPhone
platforms.
I was just wondering if someone could clarify how exactly
dequeueReusableCellWithIdentifier: works. The reason I ask is because I have
the following code:
-
- (UITableViewCell *)tableView
On 03/02/2011, at 2:19 PM, Todd Heberlein wrote:
> If starting some new graphical code for Cocoa (which I may want to port parts
> of to iOS), is it advisable to use a flipped coordinate system (origin in
> upper left)? In other words, is "upper left" the origin of the future?
I doubt very mu
Hello,
I noticed that in the didFinishLoadForFrame delegate method that the
data in [[[sender mainFrame] dataSource] data] is blank for some websites.
When the web page loaded is http:// www.google.com is works beautifully.
When the web page loaded is http://www.php.net it doesn't contai
Bad subject line. My bad.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscripti
During the recent text orientation/position thread a couple of things caught my
attention: (1) the text system seemed designed to have a flipped view (origin
in the upper left), and (2) the iOS version of an NSView, the UIView, also has
an origin in the upper left.
If starting some new graphica
thanks Matt, I did see your message and I did try layoutSublayersOfLayer: (I
assume that works because the UIView is automatically the CALayer's delegate)
and I still have the problem. However I agree your simple example is the
equivalent of what I'm doing, and I just compiled a version of it, a
On 3 Feb 2011, at 00:36, Kyle Sluder wrote:
> On Wed, Feb 2, 2011 at 4:12 PM, Mark Allan
> wrote:
>>[consoleTextView replaceCharactersInRange:endRange
>> withString:newText]; /**/ crashes here
>
> You didn't call -shouldChangeTextInRange:replacementString: first, or
> call -didChangeTex
On Wed, Feb 2, 2011 at 4:12 PM, Mark Allan wrote:
> [consoleTextView replaceCharactersInRange:endRange
> withString:newText]; /**/ crashes here
You didn't call -shouldChangeTextInRange:replacementString: first, or
call -didChangeText when you were done.
When working with the text system,
Hi all,
I've got an intermittent crash which occurs when adding an NSString to an
NSTextView in my app's main window. I very rarely experience the crash myself,
but a relatively high number of users have reported it to me.
It finally happened to me while running the app from Xcode tonight, so
Lorenzo:
By deleting "setDateStyle", the following provided the result I believe you
hoped for:
NSDate *now = [[NSDate alloc] init];
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"EEE_MMM_dd_"];
NSString *filenameDate = [dateFormatter
Thanks everyone! I've learned a lot. I also found working in a flipped view
easier for just getting a grasp of things like the NSRect returned by
-usedRectForTextContainer:.
Just for fun, I played with an NSView that is flipped, *except* just before the
call to -drawGlyphsForGlyphRange:atPoint
On Feb 2, 2011 3:18pm, Ken Thomases wrote:
On Feb 2, 2011, at 3:14 PM, lorenzo7...@gmail.com wrote:
> Here is the code I'm using to format a date string:
>
>
> NSDate *date = [NSDate date];
>
> NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
> [dateFormatt
On Feb 2, 2011, at 3:14 PM, lorenzo7...@gmail.com wrote:
> Here is the code I'm using to format a date string:
>
>
> NSDate *date = [NSDate date];
>
> NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
> [dateFormatter setDateStyle:NSDateFormatterBehavior10_4];
The above should u
Here is the code I'm using to format a date string:
NSDate *date = [NSDate date];
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateStyle:NSDateFormatterBehavior10_4];
[dateFormatter setDateStyle:NSDateFormatterShortStyle];
// check placed here
[dateFormatte
On Feb 2, 2011, at 12:37, Gordon Apple wrote:
> I wrote the accessors for both lineSpacing and lineSpaceingNum and it at
> least got through the compiler. I won't know if it really works until I get
> the rest of the scaler/Number accessors done and try it.
I don't believe there's any real diffi
Well, being the OCD type :-) I really wanted to make this work to prove I
understood how to do it.
The first thing I ran into was I had a property called "lineSpacing". I
created another property called "lineSpacingPrim" and promptly ran into a
warning about this already being declared. That we
I really think you ought to try what I said. I just did and I'm not seeing any
flash. Here's my code:
- (IBAction) doButton: (id) sender { // toggle view size
CGRect f = self->mmview.frame;
if (f.size.height == 200) {
f.size.height = f.size.width = 100;
self->mmview.frame
On Wed, 2 Feb 2011 11:52:04 -0600, Gordon Apple said:
>I would like to have scaler accesors and also standard (NSNumber) accessors
>in my managed objects. The docs show some ways to handle the former, e.g.,
>"CGFloat myValue". I prefer not to cache. (I'm trying to retrofit an app
>to CoreData a
On Feb 2, 2011, at 09:52, Gordon Apple wrote:
> I would like to have scaler accesors and also standard (NSNumber) accessors
> in my managed objects. The docs show some ways to handle the former, e.g.,
> "CGFloat myValue". I prefer not to cache. (I'm trying to retrofit an app
> to CoreData and p
Again, if you have previously paired the device, I think you can get some form
of notification, especially if your app is already running.
But if the device was never paired, the user would have to explicitly pair them
first. It's a security issue.
I don't know even that another device running
I would like to have scaler accesors and also standard (NSNumber) accessors
in my managed objects. The docs show some ways to handle the former, e.g.,
"CGFloat myValue". I prefer not to cache. (I'm trying to retrofit an app
to CoreData and prefer not to change all my code accesses to deal with
N
On Feb 1, 2011, at 7:50 PM, Greg Parker wrote:
> when @synthesize does create an ivar, the ivar it creates is @private
That's what I needed to know - thanks! m.
--
matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
Among the 2007 Mac
Hi,
mm.. ok. So that would mean even applying for MFi cannot notify that a new
(MFi) Bluetooth device nearby to an iPhone app. (other than an iPhone or
iPod touch running the app)
Thanks and Best Regards,
Tharindu
On Wed, Feb 2, 2011 at 4:58 PM, Rick Mann wrote:
>
> On Feb 2, 2011, at 03:22:1
On Feb 2, 2011, at 03:22:18, Tharindu Madushanka wrote:
> Hi,
>
> Thanks. So it would be searched by iPhone it self.
>
> I found another confusing article on web.
> http://www.objectpartners.com/2010/09/14/communicating-with-external-devices-from-the-iphone-and-ipad/
>
> Would that mean when w
Hi,
Thanks. So it would be searched by iPhone it self.
I found another confusing article on web.
http://www.objectpartners.com/2010/09/14/communicating-with-external-devices-from-the-iphone-and-ipad/
Would that mean when we go to a nearby MFi Device could our application be
locally notified and
Once you build a compliant device, you can communicate with it in any way you
want.
But as I said in the last email, you have to first pair it, using the Settings
app, and establish a connection between the iPhone and the hardware device.
Once you have that connection established, then the hand
Hi,
Let's say if we build a Hardware Device that is MFI- complient by getting
Apple approval for hardware. Would that mean our iPhone application can
search for that hardware with External Accessory Framework ? and find it's
name.. ??
Thanks a lot for your info. :)
Tharindu
On Wed, Feb 2, 2011
On 02-Feb-2011, at 1:38 AM, David Duncan wrote:
> On Feb 1, 2011, at 4:32 AM, Roland King wrote:
>
>> I have a UIView subclass in my iOS app and the content for that UIView is 3
>> CALayers, each with a bitmap image for their content, added as sublayers of
>> the UIView's layer. Each of the CA
Nope. The MFi-compliant device must first establish a Bluetooth RFCOMM
connection to the phone (which means it needs to be paired). Then the MFi
authorization happens over that RFCOMM channel, and once that's complete, only
then does the device show up in the External Accessory framework.
--
R
Hi,
Actually, I found this link.
http://developer.apple.com/library/ios/#qa/qa2009/qa1657.html
Does it mean that iPhone could search for MFI hardware and get its name
using External Accessory Framework. Could someone confirm on this ?
Thanks,
Tharindu
On Wed, Feb 2, 2011 at 10:51 AM, Rick Ma
34 matches
Mail list logo