t;> On Nov 4, 2022, at 23:05, Steve Christensen via Cocoa-dev
>> wrote:
>>
>> The view hierarchy doesn’t go through a layout pass until after it is added
>> to a live view or window. At awakeFromNib time it’s still essentially a
>> snapshot of the layout in the n
The view hierarchy doesn’t go through a layout pass until after it is added to
a live view or window. At awakeFromNib time it’s still essentially a snapshot
of the layout in the nib since it hasn’t yet been inserted into the “context”
that will allow the layout engine to determine how big all th
You mentioned creating and managing threads on your own, but that’s what
NSOperationQueue —and the lower-level DispatchQueue— does. It also will be more
efficient with thread management since it has an intimate understanding of the
capabilities of the processor, etc., and will work to do the “ri
One way to speed it up is to do as much work as possible in parallel. One way
—and this is just off the top of my head— is:
1. Create a NSOperationQueue, and add a single operation on that queue to
manage the entire process. (This is because some parts of the process are
synchronous and might t
I don’t have an answer for your question, and I know that this doesn’t actually
answer it below, but it may still provide some info to help you move forward.
The windowing system is always working in points from a coordinates point of
view. So window.frame and view.frame are in points, not pixel
For slide shows that I’ve seen, they typically display each image for several
seconds at a time. If that’s the case, why can’t you just load the next image
from disk on a background queue while the current image is being displayed and
not have to worry about memory usage needed to cache multiple
> On May 27, 2020, at 3:03 PM, Steve Mills via Cocoa-dev
> wrote:
>
>> I can't recall/reproduce, but it was definitely *inside*
>> CGImageSourceCreateThumbnailAtIndex().
>>
>> If there is no image a tinder 0, shouldn't it just return NULL gracefully?
>
> We don’t know that. There are many ro
;> On Nov 11, 2019, at 15:07 , Steve Christensen via Cocoa-dev
>> mailto:cocoa-dev@lists.apple.com>> wrote:
>>
>> Some existing Obj-C methods are of the form:
>>
>> + (nullable __kindof NSManagedObject) someFooThing;
>>
>> Right now I have
I’m working on an Obj-C app that got started a bunch of years ago and thought
that I would start migrating some of the smaller pieces over to Swift.
Some existing Obj-C methods are of the form:
+ (nullable __kindof NSManagedObject) someFooThing;
Right now I have
class var someF
First guess would be not to explicitly set -anchorPosition. It defaults to
(0.5, 0.5), which refers to the middle of the bounds, and transforms (like
scaling) are applied relative to that position.
> On Sep 14, 2019, at 6:25 AM, Gabriel Zachmann via Cocoa-dev
> wrote:
>
> Maybe, I haven't un
Is it possible that the entity is retained but has been deleted from the MOC? I
vaguely recall seeing this myself at one point in the dim past.
> On Mar 27, 2019, at 1:18 PM, Rick Mann wrote:
>
> I can't tell. I don't believe I have any unreferenced MOCs.
>
>> On Mar 27, 2019, at 13:08 , Dave
Alex, is there any reason you couldn’t have used one of these?
[self.sharedData.webServicesURL URLByAppendingPathComponent:@"login"]
[self.sharedData.webServicesURL URLByAppendingPathComponent:@"login"
isDirectory:{YES|NO}]
> On Feb 22, 2019, at 9:40 AM, Alex Zavatone wrote:
>
> There are 2 p
It's not uncommon to have a method throw an exception when you make a
programming error so that you get immediate feedback. Not knowing offhand which
method(s) were called, my guess would be that they're designed to always
succeed if you specify the correct parameter values, so the assertion is
Don't complicate your life by managing multiple NSFetchedResultsControllers.
Just create a single one that returns Club entities. For your table view data
source methods:
func numberOfSections(in tableView: UITableView) -> Int
{
return frc.fetchedObjects.count
}
func tableView(_ tableView:
You could manage the button state yourself without a lot of code.
@IBOutlet var button1: NSButton// tag = 0
...
@IBOutlet var buttonN: NSButton// tag = N - 1
private var selectedPaletteButtonIndex: Int = 0
private var paletteButtons: [NSButton]
override func viewDidLoad()
{
super.vi
> On Jan 17, 2018, at 5:24 PM, Alex Zavatone wrote:
>
> po [cell.dataField isKindOfClass:[UITextField class]]
Have you tried "print [cell.dataField isKindOfClass:[UITextField class]]",
instead, possibly casting the result to bool? The debugger may be getting
confused when you're asking it to
d execution
> time.
> On Dec 13, 2017, at 1:31 AM, Viacheslav Karamov wrote:
>
> Yes, I confirm that
>
>
> 12.12.17 23:16, Steve Christensen wrote:
>> Did you confirm that there is a UIBackgroundModes key in your app's
>> Info.plist?
>>
>> UIB
Did you confirm that there is a UIBackgroundModes key in your app's Info.plist?
UIBackgroundModes
fetch
> On Dec 12, 2017, at 6:23 AM, Viacheslav Karamov wrote:
>
> I have configured Background Fetch at the "Capabilities" tab in my Project's
> settings. Then added to the App delega
It sounds like you're looking at image file data rather than buffers of pixel
data. If so then I wouldn't make the assumption that the encoded bytes in two
PNG files will be identical for identical images. Depending on how flexible the
file format is, then particular parts of the encoded image c
On Nov 14, 2017, at 8:37 PM, Rick Mann wrote:
>
>> On Nov 14, 2017, at 20:18 , Jens Alfke wrote:
>>
>>> On Nov 14, 2017, at 8:11 PM, Rick Mann wrote:
>>>
>>> Maybe, at least for the bonus question. The bigger question is around the
>>> copy.
>>
>> Where pixmaps live is a pretty complex issu
高田氏、
The word 'pedophilia' in English is shōniseiai' in Japanese. At least in our
part of the world, that word has a very negative connotation and its practice
is illegal. That is why nobody will visit your website. I would suggest that
you consider a different domain name and use a service lik
On Jul 14, 2017, at 8:09 AM, Jeremy Hughes wrote:
>
>> On 14 Jul 2017, at 14:40, Steve Christensen wrote:
>>
>> On Jul 14, 2017, at 3:50 AM, Jeremy Hughes
>> wrote:
>>>
>>> I’m still not entirely clear on when autorelease pools are used in Swif
On Jul 14, 2017, at 3:50 AM, Jeremy Hughes wrote:
>
> I’m still not entirely clear on when autorelease pools are used in Swift.
> There is a WWDC video which says that they’re used in code that interfaces
> with Objective-C, but Greg Parker’s comments in this thread indicate that
> autorelease
On Jul 12, 2017, at 1:16 PM, Jeremy Hughes wrote:
>
>> On 12 Jul 2017, at 19:25, Jens Alfke wrote:
>>
>>>
>>> On Jul 12, 2017, at 10:57 AM, Jeremy Hughes
>>> wrote:
>>>
>>> Wouldn’t it be ARC (rather than the consumer) that is balancing retains?
>>
>> Yes. ARC internally generates calls to
Xcode 8.3.1, iOS Simulator 10.3 and iOS 10.3.1
I am using a paginated UIWebView to display some HTML. Everything appeared to
be working OK until I changed the CSS to set the background color to black and
the foreground (text) color to white. Then I found that wherever there is a
non-zero margi
Jens Alfke wrote:
>>
>>> On Feb 8, 2017, at 10:38 AM, Steve Christensen wrote:
>>>
>>> The time between when the request is made and when it completes with an
>>> error might be a minute or so, so the framework is immediately bailing on
>>> the
I am occasionally seeing a NSURLErrorUnsupportedURL (unsupported URL) error
being returned by download tasks on a background NSURLSession, on iOS. Before
you ask, the URL (https://…) is properly formed, [NSURL URLWithString:] returns
a non-nil URL, and as an extra manual check I did an online va
iOS 10.
I'm seeing some odd behavior where occasionally collection view cells are drawn
on top of their section header view instead of behind it. When I use the view
inspector in Xcode then I do, in fact, see the cells in front of the section
header.
These are pretty generic cells that contain
On Jan 3, 2017, at 8:26 AM, Sandor Szatmari
wrote:
>
> Steve,
>
>> On Jan 3, 2017, at 10:17, Steve Christensen wrote:
>>
>> In the Date & Time preference panel, I assume that you're referring to the
>> option on the Clock tab. If so, those se
In the Date & Time preference panel, I assume that you're referring to the
option on the Clock tab. If so, those settings refer only to the menubar clock
display.
If you notice in that same preference panel, on the Date & Time tab, there is a
message at the bottom that says, "To set date and ti
action?path=/videos/wwdc_2012__sd/session_228__best_practices_for_mastering_auto_layout.mov>
>
> But in general, the SDK documentation on animating autolayout constraint
> changes is borderline non-existent.
>
> Doug Hill
>
>
>> On Dec 28, 2016, at 5:54 PM, Steve Christensen > <mailto:puns...@mac.com>> wrot
I have always put the thing that I'm animating into the animation block:
- (IBAction)animateIt:(id)sender
{
static BOOL small = NO;
small = !small;
CGFloat newWidth = small ? self.view.frame.size.width / 2 :
self.view.frame.size.width;
[UIView animateWithDuratio
lex Zavatone wrote:
>
> On Oct 19, 2016, at 2:08 PM, Steve Christensen wrote:
>
>> This is the model I use for singletons and I've never had the singleton
>> instance deallocated out from under me.
>>
>> + (MyClass*) sharedThing
>> {
>> sta
This is the model I use for singletons and I've never had the singleton
instance deallocated out from under me.
+ (MyClass*) sharedThing
{
static dispatch_once_t sOnceToken = 0;
static MyClass* sSharedThing = nil;
dispatch_once(&sOnceToken,
^{
sSha
What is the error code when it fails?
> On Sep 26, 2016, at 2:44 AM, Markus Spoettl wrote:
>
> I'm using SecStaticCodeCheckValidity() to self check the signature of my own
> app when it is launched. This works fine and always has.
>
> All of a sudden, the call to SecStaticCodeCheckValidity()
> On Aug 24, 2016, at 8:37 PM, Jeff Szuhay wrote:
>
>
>> On Aug 24, 2016, at 8:02 PM, Britt Durbrow
>> wrote:
>>
>>
>>> On Aug 24, 2016, at 12:59 PM, Jeff Szuhay wrote:
>>>
>>> I draw my images (clocks) into a “reference” sized rectangle—for simplified
>>> position calculations—and then h
So, (UIInterfaceOrientationMask.Portrait |
UIInterfaceOrientationMask.LandscapeLeft) doesn't work?
> On Jul 12, 2016, at 11:25 AM, William Squires wrote:
>
> In iOS 8, I would (in a view controller):
>
> ...
> override func supportedInterfaceOrientations() -> Int
> {
> return Int(UIInterfaceO
Where are you specifying the text encoding of the HTML "document" passed to
NSMutableAttributedString(HTML:, documentAttributes:)? The default encoding for
HTML used to be ISO-8859-1, not UTF-8, for HTML 4 and earlier (and could
continue to be interpreted that way by NSAttributedString for compa
I haven't worked with AirDrop, but I just looked at the docs and one of the
delegate methods is -sharingService:didFailToShareItems:error:. Maybe if you
implement that you can at least see what the specific error is?
Steve
> On May 26, 2016, at 10:23 PM, Gerriet M. Denkmann
> wrote:
>
> I h
On Feb 4, 2016, at 2:59 PM, Quincey Morris
wrote:
>
> On Feb 4, 2016, at 13:01 , Steve Christensen <mailto:puns...@mac.com>> wrote:
>>
>> it looks like the width of the embedding view is set to the text width of
>> the UILabel instead of the text heigh
Our UI design calls for a UILabel rotated 90° CCW. When I originally started
implementing several months ago, I tried going the auto-layout route but ran
out of time without a solution, so I went back to manual layout, calculating
the size of the label in code then adjusting the frames of the la
My app sets a custom tint color on the main window as part of its
initialization.
Later it creates a UIActivityViewController instance and explicitly set its
controller.view's tint color to the blue system tint color before having the
root view controller present it. I added this last piece in
On Aug 16, 2015, at 2:58 PM, Alex Zavatone wrote:
> Would be REALLY nice if there was something visual that simply communicated
> to you that they are not for public consumption.
>
> If I see it in the left pane of the debugger, and no visual indicators are
> stating that it's restricted, It's
Does anybody know if there's a way to get WebKit to dump errors to the console?
The default behavior appears to be to fail silently.
Background:
I'm working on an app that deploys to iOS 7 and later. It contains a UIWebView
whose content is build dynamically and contains, among other things, a
ice method may be a
better way to go.
> On Jun 12, 2015, at 10:04 AM, Quincey Morris
> wrote:
>
> On Jun 12, 2015, at 06:22 , Steve Christensen wrote:
>>
>> NSInteger majorSystemVersion =
>> UIDevice.mainDevice.systemVersion.integerValue;
>
>
>
How about something like this?
NSInteger majorSystemVersion = UIDevice.mainDevice.systemVersion.integerValue;
if (majorSystemValue == 8)
AVSpeechUtterance.rate =
else
AVSpeechUtterance.rate =
> On Jun 11, 2015, at 10:23 PM, Quincey Morris
> wrote:
>
> There’s a particular A
In my prefix file that is used to build precompiled headers, I include the
following after #import-ing all the framework headers. It replaces the standard
definition with a version that doesn't insert quotes around an unquoted string
literal.
#undef CFSTR//(cStr)
#ifdef __CONSTANT_CFSTRINGS__
#
No, it doesn't make a difference. In both cases the compiler will generate a
"test and branch" to the method's epilogue. For the "=" case:
if (self = [super init]) ...
is equivalent to:
if ((self = [super init]) != nil) ...
is equivalent to:
self = [super init];
On May 19, 2015, at 8:52 AM, Britt Durbrow
wrote:
>
>> On May 19, 2015, at 7:20 AM, Steve Christensen wrote:
>>
>> I just finished catching up on the discussion and keep coming back to the
>> fragile nature of relying on retainCount. For now you do, indeed, have
I just finished catching up on the discussion and keep coming back to the
fragile nature of relying on retainCount. For now you do, indeed, have the
option to vaporize your toes; later you may not have access to a ray gun if
Apple decides that it's in the best interests of all concerned that the
Would the Managing Live Resize methods of NSView
(https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/#//apple_ref/doc/uid/2014-SW41)
be helpful?
The docs for -viewWillStartLiveResize suggest that that would be a good place
to prepare fo
An app I'm working on connects to our server with SSL. The production server
has an SSL certificate but the development server does not. When testing new
server code on the development server I initialize the NSURLSession with
[NSURLSession sessionWithConfiguration:delegate:delegateQueue:], pass
> #if MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_9
This is a compile-time conditional so it will be true as long as you are
building with a pre-10.10 deployment target, thus -constrainScrollPoint: will
never be compiled in. You should put the #if … #endif around
-constrainBoundsRect:
Why aren't you creating the subview in -initWithFrame: or in a nib/storyboard?
The purpose of -drawRect: is solely to [re-]draw the contents of one view, not
build a view hierarchy. I expect that modifying the view hierarchy while in the
middle of a drawing cycle is leaving views in an inconsist
least proves that my UI behaves the right way in the event of
> SKPaymentTransactionStateDeferred. It's a hack but helped me feel
> somewhat better that the code worked.
>
> Dave
>
> On Mon, Sep 29, 2014 at 12:03 PM, Steve Christensen wrote:
>> I'm trying to figur
I'm trying to figure out how to test deferred purchases
(SKPaymentTransactionStateDeferred) in the sandbox but thus far have not been
able to find any guidance. In chatting with The Google I see questions in
Apple's developer forums, stack overflow.com, etc., but no answers. Has anybody
had suc
y to 1 and its
> lineBrakeMode property to NSLineBreakByTruncatingTail is all it takes to get
> text to truncate. You can do it in code, or in IB if you’re laying out your
> tableViewCell in a storyboard or XIB.
>
> On Sep 9, 2014, at 12:48 PM, Steve Christensen wrote:
&g
I have a UITableViewCell with several stacked UILabels:
- label1: set to 1 line, height = single line height, fixed bottom spacing
- label2: set to 2 lines, height ≥ single line height, fixed bottom spacing
- label3: set to 0 lines, height ≥ single line height, bottom spacing ≥ min
spacing
The l
On Jul 18, 2014, at 4:51 AM, 2551 <2551p...@gmail.com> wrote:
> I have a problem which I can't find anyone else asking after hours of
> searches through stackexchange and the like.
>
> In a UIView, I'm rotating a subview with a Gesture recognizer that calls this
> selector:
>
> - (IBAction)ro
My main() looks like this. Does yours specify an autorelease pool?
int main(int argc, char* argv[])
{
@autoreleasepool
{
return UIApplicationMain(argc, argv, nil,
@"MyDelegateClassName");
}
}
On Jun 19, 2014, at 5:45 PM, Varun Chandramohan
wrote:
> I w
When you call -setObject:forKey:, it replaces the entire contents of that key,
whether the object is a number, string, dictionary, etc. That’s the same
behavior as if you called -setObject:forKey: on a regular dictionary when one
of its objects is, itself, a dictionary.
Depending on what you ne
I’m already doing downloads in my app using NSURLSession so I used my existing
code to download and decode the data returned by the URL below and didn’t get
an error. I am building against iOS 7.1 and I tried it out in the simulator.
Doing a brief search, it seems like when others are running in
Why not just make a common UIViewController subclass that manages the global
menu button, and then subclass that class for each of the controllers that live
on your navigation stack? If it contains the ivar for the UINavigationItem
(marked @protected) instead of having that ivar in each of the c
I’ve been testing IAP in the sandbox store on a development iPod and just
started getting this error in -paymentQueue:updatedTransactions: with
(transaction.transactionState == SKPaymentTransactionStateFailed):
Error Domain=SKErrorDomain Code=0 "Cannot connect to iTunes Store"
UserInfo=0x1aa5e0
On Apr 7, 2014, at 9:32 PM, Michael de Haan wrote:
> It still however leaves me puzzled as to why I cannot implement Swipe to
> delete. (the 2 usual suspects), ie
>
> -(BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath
> *)indexPath;
> -(void)tableView:(UITableView *)
I have formatted text delivered to the app as HTML that I am converting to a
NSAttributedString and then assigning to a UILabel like this:
NSDictionary* options =
@{
NSCharacterEncodingDocumentAttribute: @(NSUTF8StringEncoding),
NSDefaultAttributesDocumentAttribute:
On Dec 17, 2013, at 1:04 PM, Jens Alfke wrote:
> On Dec 17, 2013, at 10:44 AM, Steve Christensen wrote:
>
>> This seems odd to me since there's a perfectly fine Avenir Next Medium
>> Italic available. Is this an expected font choice for italic text given the
>>
I haven't seen anything that directly returns this information. Given that, it
might be better to take the approach of choosing the number of cards that look
good on an iPad mini and not worrying so much that there are "too few" on a
full-sized iPad.
On Nov 25, 2013, at 4:40 AM, Roland King w
Does (scrollView.contentOffset.x <= 0) not work? How are you testing for it now?
On Oct 8, 2013, at 12:20 PM, Dave wrote:
> Hi,
>
> I finally managed to get back on this! I've got it working when scrolling
> from left to right and can detect when the user scrolls past the last item,
> howeve
; a gap - you can add a fragment of an image.
>
> Thanks anyway
> All the Best
> Dave
>
> On 7 Oct 2013, at 18:11, Steve Christensen wrote:
>
>> Have you thought about representing your images as cells in a UITableView?
>> If so, you could use something li
Have you thought about representing your images as cells in a UITableView? If
so, you could use something like BBTableView
(https://github.com/bharath2020/UITableViewTricks). It's a subclass of
UITableView lays out cells along an arc but it also has support for infinite
scrolling, so you could
On Oct 4, 2013, at 2:45 PM, David Hoerl wrote:
> On 10/4/13 5:09 PM, Steve Christensen wrote:
>> On Oct 4, 2013, at 1:52 PM, David Hoerl wrote:
>>
>>> But its really odd - and I'm thinking about a bug report on this - that the
>>> delegate has to pr
On Oct 4, 2013, at 1:52 PM, David Hoerl wrote:
> But its really odd - and I'm thinking about a bug report on this - that the
> delegate has to provide the size before the view is even created.
It make sense if you think about it: it's asking for sizes so that scroll view
contentSize can be set
The table view needs to call -heightForRowAtIndexPath: for each cell in the
table, at the very least, so that it knows how tall the table is so that it can
set -contentSize on it's underlying scroll view.
For performance, you could calculate and cache the cell heights in an array
managed by you
I just looked at some UITextFields with placeholder text, both on a device and
in the simulator, and it was dim but readable.
If you're hot to change the look then I don't recommend using
-setValue:forKeyPath:. I don't know that it will get your app rejected but at
the very least it's a fragile
On Jan 4, 2013, at 10:40 AM, Mike Abdullah wrote:
> On 4 Jan 2013, at 18:12, Eric Gorr wrote:
>
>> Good point Mike.
>>
>> However, after it has completed the layout, is it possible to determine the
>> height of the content? If so, i could probably work with that information.
>>
>> But, I woul
How about asynchronously downloading the page HTML into a string, doing a text
replace of the name of the CSS file to your local one, then passing the
modified HTML to the web view?
Sent from my iPhone
On Aug 18, 2012, at 6:52 AM, Koen van der Drift
wrote:
>
> On Aug 18, 2012, at 7:24 AM, K
On Feb 27, 2012, at 10:21 PM, Quincey Morris wrote:
> On Feb 27, 2012, at 20:46 , Graham Cox wrote:
>
>> Jeez.
>
> Indeed. Especially as it's usually taken as a given that large numbers of
> NSViews aren't going to perform well. Trying to make the scenario work might
> be quixotic at best.
>
A UITableViewCell could be deallocated as soon as its row scrolls out of view.
UITableView will reuse cells if you specify a reuse identifier, but I don't
believe that the docs actually specify the number of cells that are reused.
I'm assuming that the web view is displayed when the user taps a
Why don't you just decouple your UI from the "by-the-millisecond" download
process? For example, you could update calculated values whenever the value of
bytesDownloaded changes but use a NSTimer to update the display of those values
maybe once or twice a second. The display is then sampling the
It looks like UIWebView snarfs up all the gestures by default. I had a project
where I needed to "see" a tap on the web view without otherwise disrupting the
normal behavior. I ended up creating a UITapGestureRecognizer, set its delegate
to "self", and then implemented
-gestureRecognizer:should
On Dec 24, 2011, at 7:13 PM, Jamie Daniel wrote:
> I am very new to Xcode and iPad development. I am trying to do the following:
>
> I have an initial NavigationController and ViewController. I am trying to go
> from a button on the ViewController to a SplitViewController using
> Storyboards bu
And just to add in one more bit about why it's important to separate the text
from the binary header, -initWithData:encoding: "[r]eturns nil if the
initialization fails for some reason (for example if data does not represent
valid data for encoding)." (That is from the NSString docs.)
On Dec 2
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.
On Aug 19, 2011, at 7:17 AM, Sixten Otto wrote:
> On Thu, Aug 18, 2011 at 10:38 PM, Ken Thomases wrote:
>
>> Those functions, and the general operation that they perform, require that
>> the files to be exchanged be on the same file system.
>
> If true, that certainly makes that method far less
The first thing I notice is that none of the CGContext* calls after
UIGraphicsBeginImageContext is referring to that image context so they are
having no effect on it. You should move the UIGraphicsGetCurrentContext down
after the [drawImage...] call.
If you are still not able to get the desired
With the caveat that I haven't actually tried it, would it make more sense to
be streaming the movie data to a local file, then specifying the URL/path to
the file in the initializer method of one of the movie player classes? If the
player can handle the case where not all the movie data is pres
#x27;s fixed.
>
> thanks,
> arri
>
>
> On Tue, Jul 5, 2011 at 9:17 PM, Steve Christensen wrote:
>> For the nonexistent method warnings, your project- or target-level settings
>> likely have "Undeclared Selector" checked in the GCC warnings section of the
For the nonexistent method warnings, your project- or target-level settings
likely have "Undeclared Selector" checked in the GCC warnings section of the
build settings.
For the multiple selectors warnings, look at the Strict Selector Matching item
in the same section. It says this will pop up i
Is this a correct interpretation of what you're trying to do? You have a title
string that will be drawn in a handwriting font. You wish to reveal each of the
letter strokes over time as if someone were actually writing the title on a
piece of paper.
On Jun 23, 2011, at 9:45 AM, Gustavo Pizano
ngles and ellipses. I had assumed that you created
shape classes to hold the properties (frame, rotation, color, etc.) and to draw
those shapes.
> On Jun 11, 2011, at 6:49 PM, Steve Christensen wrote:
>
>> And also to clarify, are you "freeze drying" a view or the objects it d
And also to clarify, are you "freeze drying" a view or the objects it draws?
You should be doing the latter since that's part of your model.
On Jun 11, 2011, at 6:47 PM, Steve Christensen wrote:
> How do the results differ between what you saw before and after saving t
How do the results differ between what you saw before and after saving the
document? Is everything wrong? or just the scaling, the rotation, what?
And to draw an object, are you using an affine transform just to rotate it or
for scaling and/or translation as well?
On Jun 9, 2011, at 4:25 PM, D
On Jun 7, 2011, at 6:32 PM, James Merkel wrote:
> On Jun 7, 2011, at 6:20 PM, Jens Alfke wrote:
>
>> On Jun 7, 2011, at 6:17 PM, James Merkel wrote:
>>
>>> The following works ok:
>>>
>>> NSString * mapquestURLString;
>>>
>>> mapquestURLString = [NSString
>>> stringWithString:@"http://mapq.st
-drawInRect draws the image into the destination rectangle, stretching or
shrinking as necessary to get it to fit. If you want to preserve the aspect
ratio, you'll have to generate a scaled rectangle with the image's aspect
ratio. That's just simple math.
On Jun 1, 2011, at 9:29 PM, Develo
t; }
>>
>> D
>>
>>
>> On 1 June 2011 09:54, Dan Hopwood wrote:
>>
>>> Great, thanks a lot Steve - very helpful.
>>>
>>> D
>>>
>>>
>>>
>>> On 31 May 2011 18:44, Steve Christensen wrote:
>&g
dInsance = nil;
> }
>
> D
>
>
> On 1 June 2011 09:54, Dan Hopwood wrote:
> Great, thanks a lot Steve - very helpful.
>
> D
>
>
>
> On 31 May 2011 18:44, Steve Christensen wrote:
> How about providing a singleton class method? Then you just
How about providing a singleton class method? Then you just include
WebServiceInterface.h where needed. No need to have a global variable.
@implementation WebServiceInterface
...
+ (WebServiceInterface*) sharedInterface
{
static WebServiceInterface* sharedInstance = nil;
if (sh
A view controller controls a specific view hierarchy so it shouldn't be
reaching explicitly out to other view controllers to tell them to do something.
Depending on your specific situation, interested objects could register for
notifications when certain things change in the world, then one obje
Custom view that sits on top of a UIImageView? Implement -drawRect: and a
progress property and you're done.
On May 26, 2011, at 11:21 AM, Alex Kac wrote:
> I'm not sure what the best way to tackle this is... so I thought I'd ask
> here. I have an image with a circular button inside of it. I'd
1 - 100 of 305 matches
Mail list logo