Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6715555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:37:43+00:00 2026-05-26T08:37:43+00:00

In iOS, we have CGContextRef, CGFontRef and such. What do ‘Ref’ indicate here? Are

  • 0

In iOS, we have CGContextRef, CGFontRef and such. What do ‘Ref’ indicate here? Are they refernces to objects of type CGContext, CGFont ? I do not understand this particular concept. Where can I look for the explanation of this concept?
Any help appreiated,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:37:43+00:00Added an answer on May 26, 2026 at 8:37 am

    As far as I know, CGContextRef, CGFontRef and such are pointer types (typedefs) to plain C structures, not to Objective-C objects, and they are coming from older C frameworks of Mac OS X. See CGContext reference, CGFont reference, Core Foundation Design Concepts and Memory Management Programming Guide for Core Foundation. Because those *Ref objects are “toll-free bridged” with the Objective-C Cocoa framework, you can substitute them for Cocoa objects in function arguments, and vice versa (3). They have their own rules for memory management (4). I myself got a first brief but mostly sufficient explanation of those Core Foundation objects and frameworks by watching the Stanford iPhone Programming class videos (see also the class’ site).

    Hope I gave you some pointers to start with.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Anyone have any idea about CASlotProxy Class in Cocoa (iOS SDK)? I found it
I am developing an iOS application, and trying to zip the file I have
I've upgraded the iOS SDK to the newly released 4.1 and now I have
Android and iOS have a concept of a density independent pixel so your layouts
Does ABPerson in iOS have kABModificationDateProperty? Thanks for your help :)
I have iOS 4.0 on an iPod Touch 2nd Gen. There's absolutely no multitasking
I have an iOS app that displays content from a sqlite db in a
I'm diving into iOS development and have been slowly building my own alarm clock
as you know the Mail app in iOS 5 have a rich text editor
I want to change my iOS SDK. I have ios 5 and xcode 4.2

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.